[Bug fortran/37412] No error on repeated declaration
dominiq at lps dot ens dot fr
gcc-bugzilla@gcc.gnu.org
Sun Sep 7 22:07:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list