This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31473] gfortran does not detect duplicate EXTERNAL or INTRINSIC declarations
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Apr 2007 17:57:36 -0000
- Subject: [Bug fortran/31473] gfortran does not detect duplicate EXTERNAL or INTRINSIC declarations
- References: <bug-31473-14284@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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