This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37412] No error on repeated declaration
- 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: 7 Sep 2008 21:35:53 -0000
- Subject: [Bug fortran/37412] No error on repeated declaration
- References: <bug-37412-16679@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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