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: "tobi 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:48:16 -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 #6 from tobi at gcc dot gnu dot org 2007-09-02 18:48 -------
(In reply to comment #5)
> (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 ;-)
Sorry, you're right of course. Unfortunately, the type can't be determined in
all cases, so this criterion doesn't work. I tried.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33269