[Bug fortran/32138] New: Scanner not picking up code is in string context, warning about inline comment
mathewc at nag dot co dot uk
gcc-bugzilla@gcc.gnu.org
Tue May 29 07:50:00 GMT 2007
Using
> gfortran --version
GNU Fortran 95 (GCC) 4.3.0 20070131 (experimental)
> uname -a
Linux loanamd25 2.6.12-rc1-mm-smp #13 SMP Fri Jun 3 17:14:40 BST 2005 x86_64
x86_64 x86_64 GNU/Linux
and compiling the file
<begin gf_test.f90>
WRITE(*,*) 'A continued comment&
&!'
END
<end gf_test.f90>
as
> gfortran gf_test.f90
results in the erroneous warning from the Fortran scanner
"Warning: '&' not allowed by itself with comment in line 2"
--
Summary: Scanner not picking up code is in string context,
warning about inline comment
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mathewc at nag dot co dot uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32138
More information about the Gcc-bugs
mailing list