https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65825
Roger Ferrer Ibanez <rofirrim at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #3 from Roger Ferrer Ibanez <rofirrim at gmail dot com> --- I should have read the standard more carefully. Fortran 2003 draft §11.2.1 says (similarly in Fortran 95 except for the two new attributes) "The local identifier of an entity made accessible by a USE statement shall not appear in any other nonexecutable statement that would cause any attribute (5.1.2) of the entity to be specified in the scoping unit that contains the USE statement, except that it may appear in a PUBLIC or PRIVATE statement in the scoping unit of a module and it may be given the ASYNCHRONOUS or VOLATILE attribute." Also, earlier in §11.2 it says "If an intrinsic procedure is declared in the scoping unit of a module, it shall explicitly be given the INTRINSIC attribute in that scoping unit or be used as an intrinsic procedure in that scoping unit." Because of this, I believe gfortran is doing nothing wrong here. I'm closing this as invalid. Sorry for the fuss. Kind regards, Roger