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


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