This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/31473] gfortran does not detect duplicate EXTERNAL or INTRINSIC declarations



------- 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 (&current_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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]