This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31812] New: Better message than "syntax error" when truncating long lines
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 May 2007 08:41:01 -0000
- Subject: [Bug fortran/31812] New: Better message than "syntax error" when truncating long lines
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gfortran silently trunkates lines which gives syntax errors. Especially in free
format, the truncation is usually not intended. (In fixed format is sometimes
is.)
Other compiles print a warning (such as g95, all options; syntax error
afterwards), give an error (such as NAG f95) or (silently) accept longer lines
(ifort, all options).
gfortran prints a warning, but only with -Wall not with -pedantic -std=f95.
Real-world example:
http://gcc.gnu.org/ml/fortran/2007-05/msg00042.html
Message:
"," name=",1H",A,1H",">",A,"</i>")',ADVANCE="Yes") blank(1:inden),tag,str(1
1
Error: Syntax error in argument list at (1)
--
Summary: Better message than "syntax error" when truncating long
lines
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31812