[Fortran-Experiments] Merge to r120360

Tobias Burnus burnus@net-b.de
Wed Feb 21 22:52:00 GMT 2007


Tobias Burnus wrote:
>  function foo() bind(c,name="xx")
>  integer(c_int),bind(c,name="xy") :: foo
>   
This reminds me: We should check somewhere whether the C name clashes:

module x
use iso_c_binding
  integer(c_int),bind(c,name="one") :: one
  integer(c_int),bind(c,name="one") :: one2
  integer(c_int),bind(c,name="One") :: one3
end module x

gfortran accepts this, but there are two "one" (as the c name is case
sensitive).
NAG f95 prints this error:
"Error: bb.f90: Duplicate binding label 'one' for variable ONE of module
X and variable ONE2 of module X"

Tobias



More information about the Fortran mailing list