This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/32138] New: Scanner not picking up code is in string context, warning about inline comment


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]