------- Comment #4 from tkoenig at gcc dot gnu dot org  2008-04-06 13:51 -------
Confirmed that this works for 4.3 and 4.4.
Also, using 1 (instead of the illegal 0) as
format generates the right error in 4.2, as well:

$ gfortran-4.2 foo.f90 
foo.f90:1.10:

write(18,1) 'trtot= ',trtot
         1
Error: FORMAT label 1 at (1) not defined
$ gfortran-4.2 -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2
--program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug
--enable-objc-gc --enable-mpfr --disable-libmudflap --enable-targets=all
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
--target=i486-linux-gnu
Thread model: posix
gcc version 4.2.3 (Debian 4.2.3-3)

This is not a regression.

Closing as fixed.


-- 

tkoenig at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
           Keywords|                            |ice-on-invalid-code
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35826

Reply via email to