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: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Sep 2008 22:06: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 #3 from dominiq at lps dot ens dot fr 2008-09-07 22:06 -------
With -std=f95 all the gfortran versions I have reject the code with:
[ibook-dhum] f90/bug% gfc -std=f95 pr37412.f90
pr37412.f90:3.17:
character(1) st
1
Error: 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.
I agree this would avoid to wonder which statement is taken into account.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37412