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/37412] No error on repeated declaration



------- Comment #2 from burnus at gcc dot gnu dot org  2008-09-07 21:35 -------
(In reply to comment #1)
> Warning: Symbol 'st' at (1) already has basic type of CHARACTER

I think one should print here an error as the LEN type parameter is different. 

The same issue exists for the KIND type parameter.

> Now I am not sure which statement is the winner. Is this defined somewhere?

I think it is a bug (cf. above) and thus not really defined. However, testing
with gfortran 4.3 implies that the latter definition wins.


-- 

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         |2008-09-07 21:35:53
               date|                            |


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


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