This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34960] Statement starting in wrong column causes Unclassifiable Statement error in the preceding executable line
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jan 2008 03:37:47 -0000
- Subject: [Bug fortran/34960] Statement starting in wrong column causes Unclassifiable Statement error in the preceding executable line
- References: <bug-34960-15688@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jvdelisle at gcc dot gnu dot org 2008-01-25 03:37 -------
I can reproduce this with the original test case.
This snippet:
IVAR1=1 ! "Unclassifiable statement" on this line
C
C
IVAR2=0
In fixed form, the 'I' in IVAR2 is being interpreted as a continuation
character and "VAR2=0" is being appended to the statement above, making it
unclassifiable.
g77, intel ifort, and sun f95 also see it this way
The compilers frontend scanners generally remove all the comments and combine
the continuations as a first step before proceeding further, so the error
detection mechanisms can't see the problem. My editor highlights those
continuation characters in a bright yellow so they are more obvious.
Frustrating for sure, but not a compiler bug. Thanks for reporting, but I
think this is a "NOT A BUG"
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34960