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/33189] read(blah, fmt=*) is accepted, but read(blah, '*') not.



------- Comment #6 from burnus at gcc dot gnu dot org  2007-08-25 20:27 -------
      READ(a, '*') i

I think you mix this up with * (not '*') which is no character expression but
simply a single asterisk.

R914 format is default-char-expr
            or label
            or *

And "The default-char-expr shall evaluate to a valid format specification
(10.1.1 and 10.1.2)." The format specification does not contain the asterisk.

> If I change '*' to fmt=* the code is accepted.

Well, using * instead of '*' also works - similarly, fmt='*' does not.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33189


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