This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33269] 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: 2 Sep 2007 18:42:07 -0000
- Subject: [Bug fortran/33269] Diagnose missing "(" in "PRINT ('a'),"
- References: <bug-33269-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from burnus at gcc dot gnu dot org 2007-09-02 18:42 -------
(In reply to comment #4)
> > if the first item after the "(" is a default-char-expression
> > (constant or not) and there is no "...=" (e.g. "fmt=") in there, then it is
> > also a "READ format" statement.
>
> This is wrong. In "READ(20) x", 20 is not a format but a unit number.
I don't think that this is wrong:
I would argue that 20 is not a default-char-expression ;-)
> Additionally, we allow "READ(20), x" as an extension which makes this even
> more annoying to fix.
Agreed.
> Fortunately, they're not important issues.
Fortunately not.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33269