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: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Dec 2009 21:01:26 -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 #6 from dfranke at gcc dot gnu dot org 2009-12-08 21:01 -------
(In reply to comment #4)
> Maybe I could change this warning into an error even for non-standard
> conforming mode in case the length or a kind parameter differs. What
> do you think?
I assume, this happened at some point. Current 4.5.0 20091208 gives:
$> gfortran-svn pr37412.f90
pr37412.f90:3.17:
character(1) st
1
Error: Symbol 'st' at (1) already has basic type of CHARACTER
I believe this is correct. Closing.
--
dfranke at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dfranke at gcc dot gnu dot
| |org
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37412