[Bug fortran/36325] specific or generic INTERFACE implies the EXTERNAL attribute

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun May 25 17:12:00 GMT 2008



------- Comment #5 from burnus at gcc dot gnu dot org  2008-05-25 17:11 -------
> Which leads me to think we should probably implement this (for the case that
> the interface is explicit). Or is there any good reason that this is not done?

Well, regarding the reason: Before interfaces had no EXTERNAL attribute and
those procedures with EXTERNAL attribute had no explicit interface.

That interfaces have the EXTERNAL attribute only needed for procedure pointers.
One could think of not giving the EXTERNAL attribute to procedures declared in
interface bodies and modifying POINTER / the pointer resolution only. I'm not
sure what is cleaner and simpler.

Regarding our questions, Richard Maine (mostly) answered them. See URL in
comment #3.

  conf2(external,dimension)
is in any case wrong. It should be:
  conflict(external with implicit interface, dimension)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36325



More information about the Gcc-bugs mailing list