Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

warning #5462: Global name too long, shortened from... side effects?

$
0
0

Hi all,

I begin to write my new code parts by using submodules and got a warning during compilation that the 'global name' is too long:

warning #5462: Global name too long, shortened from: MOD_CALC_BEAM_SOLUTION@SMOD_CALC_BEAM_SOLUTION_ANALYTICALCALC_BEAM_SOLUTION_ANALYTICAL_mp_R1NX to: _CALC_BEAM_SOLUTION@SMOD_CALC_BEAM_SOLUTION_ANALYTICALCALC_BEAM_SOLUTION_ANALYTICAL_mp_R1NX

The original name is 94 characters long the shortened version 91. I wonder that and why such a limitation still exist, because I try to give meaningful (file-)names for all my code parts, thinking this is a good programming praxis. Luckily PSXE 2016 update 3 gives no error as older 12.x has done (https://software.intel.com/en-us/comment/1826536#comment-1826536)

However, the program works fine. Have this shortening of the global name any side effects? Maybe in relation with interoperability? Should I use shorter names?

Best regards, Johannes

ps: some code snippets:

 

submodule (mod_calc_beam_solution) smod_calc_beam_solution_analytical

  contains
  module subroutine calc_beam_solution_analytical
    use mod_PRoSiT_parameter
    implicit none

  end subroutine calc_beam_solution_analytical

end submodule smod_calc_beam_solution_analytical


module mod_calc_beam_solution
  implicit none

  private
  public  :: calc_beam_solution_analytical
  public  :: calc_beam_solution_GEBT

  ! --------------------------------------------------------------------------------

  interface
    module subroutine calc_beam_solution_analytical
      implicit none
    end subroutine calc_beam_solution_analytical
  end interface


  interface
    module subroutine calc_beam_solution_GEBT
      implicit none
    end subroutine calc_beam_solution_GEBT
  end interface

end module mod_calc_beam_solution

 


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>