This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33189] read(blah, fmt=*) is accepted, but read(blah, '*') not.
- 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: 25 Aug 2007 20:27:59 -0000
- Subject: [Bug fortran/33189] read(blah, fmt=*) is accepted, but read(blah, '*') not.
- References: <bug-33189-109@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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