This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/52393] Erroneous parse of read statement with parenthesised expression in format
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 27 Feb 2012 07:50:05 +0000
- Subject: [Bug fortran/52393] Erroneous parse of read statement with parenthesised expression in format
- Auto-submitted: auto-generated
- References: <bug-52393-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52393
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-02-27 07:50:05 UTC ---
Looks like an invalid (logical) UNIT number to me. You either need to have an
integer literal/parameter/variable, a character variable or a "*" for UNIT=.
I think you intended to write instead of:
> READ ('(') // 'A)', var
READ (*,'(' // 'A)') var
That is: With unit "*" and with the ")" not after "')'" but after 'A)'.
Additional, the comma before "var" is not allowed (but a common vendor
extension).