http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47203
janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |janus at gcc dot gnu.org --- Comment #1 from janus at gcc dot gnu.org 2011-01-07 12:00:29 UTC --- (In reply to comment #0) > The following program is accepted by gfortran but rejected by > - NAG: "Module M USEs itself" > - g95: "PROCEDURE attribute conflicts with MODULE attribute at (1)" > - ifort: "This global name is invalid in this context. [M]" I think it is invalid according to F08, chapter 16.3.1, sentence #2: "Within its scope, a local identifier of an entity of class (1) or class (4) shall not be the same as a global identifier used in that scope unless [...]" This also makes PR 46313 comment #7 invalid.