[Bug fortran/37412] No error on repeated declaration

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Sep 7 21:37:00 GMT 2008



------- 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



More information about the Gcc-bugs mailing list