https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88116
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #5 from kargl at gcc dot gnu.org --- (In reply to G. Steinmetz from comment #0) > Silently accepted invalid code, produces a wrong result : > > > $ cat z2.f90 > program p > print *, [integer :: 1, [integer(8) :: 2, '3']] > end > > > $ gfortran-9-20181118 z2.f90 -static-libgfortran > $ a.out > 1 2 0 Gerhard, I don't know if you like to keep track of issues that you submit or not. The above is quite strange if integer(8) is replaced with integer or integer(4), I get the expected error message. If it is integer(1), integer(2), or integer(8), it silently compiles. If I do, print *, [integer(8) :: 2, '3'] I et the expected error. Do you want to migrate this to its own PR? If not, I'll do it when I get around to committing the fix for the other issues.