https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34500
Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid CC| |fxcoudert at gcc dot gnu.org --- Comment #3 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> --- Since 4.9, the code is now rejected (though it's valid): $ gfortran a.f90 a.f90:4.43: character(len=1,kind=c_char) :: test, bar 1 a.f90:5.9: entry bar() bind(C) 2 Error: Procedure bar with binding label bar at (1) uses the same global identifier as entity at (2)