Hi, compiling the following code with the default language "level" (is that "gnu" or something else?) leads to:
% gfortran gfcbug33.f90 In file gfcbug33.f90:2 print *, [ 1, 2 ] 1 Warning: New in Fortran 2003: [...] style array constructors at (1) % cat gfcbug33.f90 program gfcbug33 print *, [ 1, 2 ] end program gfcbug33 When -std=gnu, -std=legacy or -std=f2003 is specified, then no warning appears. Assuming that -std=gnu is the default, the warning is not appropriate. I also find it kind of funny, because [...] style array constructors are probable there to stay and not obsolescent or deprecated. I suggest the warning to be removed. The error for -std=f95 is of course ok. Cheers, -ha -- Summary: Gratuitous warning about Fortran 2003 features w/o - std=... Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: anlauf at gmx dot de GCC host triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26054