- bind_c symbol collision:
----------- 1.f90--------
module x
use iso_c_binding
implicit none
integer(c_int), bind(c,name="c_one") :: one
end module x
---------------------------
----------- 2.f90--------
module y
use iso_c_binding
implicit none
integer(c_int), bind(c,name="c_one") :: one
end module y
program main
use x
use y
end program main
---------------------------
Does compile with gfortran, but NAG f95 outputs:
Error: 2.f90: Duplicate binding label 'c_one' for variable ONE of
module Y and variable ONE of module X
On the other hand, neither g95, sunf95 nor ifort 10 give a compile-time
error/warning.