This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/33269] Diagnose missing "(" in "PRINT ('a'),"



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]