This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32138] New: Scanner not picking up code is in string context, warning about inline comment
- From: "mathewc at nag dot co dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 May 2007 07:50:43 -0000
- Subject: [Bug fortran/32138] New: Scanner not picking up code is in string context, warning about inline comment
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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