bug in gfortran

Tobias Burnus burnus@net-b.de
Mon Feb 5 18:50:00 GMT 2007


Hi,

Matthew Bettencourt wrote:
> here is a very simple code which causes an internal error
>         write(10,0) "hi"
>         end
> gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)
With gcc version 4.1.2 20070115 (prerelease) (SUSE Linux)
and with gcc-Version 4.3.0 20070204 (experimental)
I get the following error message:

foo.f90:1.24:
        write(10,0) "hi"
                       1
Warning: Missing leading left parenthesis in format string at (1)
foo.f90:1.17:
        write(10,0) "hi"
                1
Error: Constant expression in FORMAT tag at (1) must be of type default
CHARACTER


I therefore would conclude that is has been fixed after 4.1.1 had been
released.

Tobias



More information about the Fortran mailing list