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: "jvdelisle 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 16:20:34 -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 #2 from jvdelisle at gcc dot gnu dot org 2007-08-25 16:20 -------
>From 9.4.1
R913 format is default-char-expr
or label
or ∗
>From 10.1.2
A character expression used as a format specifier in a formatted
input/output statement shall evaluate to a character string whose leading part
is a valid format specification.
NOTE 10.2
The format specification begins with a left parenthesis and ends with a
right parenthesis.
IMHO This is invalid.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33189