This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33269] New: Diagnose missing "(" in "PRINT ('a'),"
- 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: 31 Aug 2007 14:02:49 -0000
- Subject: [Bug fortran/33269] New: Diagnose missing "(" in "PRINT ('a'),"
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The format must be '(a)' and not 'a', however, gfortran does not diagnose this
in
PRINT ('a'), 'Hello'
NAG f95:
Error: a.f90, line 1: Missing left parenthesis in format specification
ifort:
Error: First non-blank character in a character type format specifier must be a
left parenthesis.
Without the outer parenthesis, gfortran detects this:
print 'a', 'Hello'
1
Error: Missing leading left parenthesis in format string at (1)
[The position of the "1" could also be better.]
--
Summary: Diagnose missing "(" in "PRINT ('a'),"
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=33269