This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/52393] I/O: "READ format" statement with parenthesed default-char-expr
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 06 Apr 2016 20:48:33 +0000
- Subject: [Bug fortran/52393] I/O: "READ format" statement with parenthesed default-char-expr
- Auto-submitted: auto-generated
- References: <bug-52393-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52393
--- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> The code in #5 is missing the initial parenthesised expression that exposes
> the flaw in parsing logic - the left hand operand of the string concatenation
> needs to be `('(')`, and not just the string literal.
Indeed! Note that gfortran accepts '(' // ('A)'), or ('(' // 'A)'). AFAICT the
problem occurs only when the first substring is enclosed in parentheses.