[Bug fortran/31473] gfortran does not detect duplicate EXTERNAL or INTRINSIC declarations
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Apr 4 17:57:00 GMT 2007
------- Comment #1 from burnus at gcc dot gnu dot org 2007-04-04 18:57 -------
Confirmed. Thanks for the report.
gfc_add_external and gfc_add_intrinsic do actually the right thing. However,
they are not used in decl.c's gfc_match_external:
gfc_clear_attr (¤t_attr);
current_attr.external = 1;
I don't think it makes sense to delete all previously defined attributes.
This also allows for
intrinsic foo
external foo
Ditto for gfc_match_intrinsic.
I think there might be a reason for clearing the attributes, even though I
cannot think of one right now.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |accepts-invalid
Last reconfirmed|0000-00-00 00:00:00 |2007-04-04 18:57:36
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31473
More information about the Gcc-bugs
mailing list