The following simple program is rejected by gfortran
(commandline: gfortran junk.f)
with this error message:
In file junk.f:6
* 1.4)
1
Error: Period required in format string at (1)
In file junk.f:4
write(6,10) x
1
Error: FORMAT label 10 at (1) not defined
c------------------------------ begin test program
program junk
real x
read(5,*) x
write(6,10) x
10 format(g1
* 1.4)
end
c------------------------------- end test program
The compilation succeeds with gcc 3.3.x and earlier
The compilation also succeeds if one removes the
blanks beetwen the line continuation and 1.4 in the format statement.
additional info
gfortran -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/home/iwan/gcc4.0.2
--enable-threads=posix --enable-__cxa_atexit -enable-languages=c,c++,f95
Thread model: posix
gcc version 4.0.2
--
Summary: gfortran rejects valid format statement
Product: gcc
Version: 4.0.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: iwan at irs dot phy dot nrc dot ca
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24268