This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34960] New: Statement starting in wrong column causes Unclassifiable Statement error in the preceding executable line
- From: "john dot klinger at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jan 2008 22:23:23 -0000
- Subject: [Bug fortran/34960] New: Statement starting in wrong column causes Unclassifiable Statement error in the preceding executable line
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following code snippet demonstrates the error in a few forms. In the real
code, only the second error was found. It was not obvious where the error was
located, since there was a large block of comments between the real cause of
the error and the line reported by gfortran.
All "IVAR2=0" lines start in column 6, all other non-comment lines begin in
column 7.
===============
FUNCTION TEST()
INTEGER IVAR1, IVAR2
C
C
IVAR2=0 ! "Syntax error in data declaration" on this line
IVAR1=1 ! "Unclassifiable statement" on this line
C
C
IVAR2=0
CALL ABC(IVAR1) ! "Syntax error in CALL statement" on this line
C
C
IVAR2=0
END
--
Summary: Statement starting in wrong column causes Unclassifiable
Statement error in the preceding executable line
Product: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: john dot klinger at gmail dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34960