This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/37412] No error on repeated declaration



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]