http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56440
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice-on-valid-code |accepts-invalid, | |diagnostic, | |ice-on-invalid-code --- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> 2013-02-25 15:25:29 UTC --- In the code, one has a C binding label "test_bug" and the module has the same name. That's invalid per Fortran 2008's "1.3.116 program unit main program, external subprogram, module, submodule, or block data program unit (2.2.1)" "16.2 Global identifiers" "Program units, [...] are global entities of a program. [...] "The global identifier of an entity shall not be the same as the global identifier of any other entity. Furthermore, a binding label shall not be the same as the global identifier of any other global entity, ignoring differences in case." Note that the current check is case sensitive, i.e. using 'bind(C,name="TEST_BUG")' should (also) produce an error.