This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35009] error on valid with -std=f95 (character arrays in format tags)
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Feb 2008 23:08:54 -0000
- Subject: [Bug fortran/35009] error on valid with -std=f95 (character arrays in format tags)
- References: <bug-35009-15703@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from fxcoudert at gcc dot gnu dot org 2008-02-28 23:08 -------
(In reply to comment #6)
> I knew I was missing something :)
I try again... this time, with less ambition, just fix the case at hand... this
should not break anything (but... I can't regtest right now).
Index: io.c
===================================================================
--- io.c (revision 132578)
+++ io.c (working copy)
@@ -1148,8 +1148,9 @@
constant. */
if (e->ts.type == BT_CHARACTER)
{
- if (gfc_notify_std (GFC_STD_GNU, "Extension: Character array "
- "in FORMAT tag at %L", &e->where) == FAILURE)
+ if (e->rank > 0
+ && gfc_notify_std (GFC_STD_GNU, "Extension: Character array "
+ "in FORMAT tag at %L", &e->where) == FAILURE)
return FAILURE;
}
else
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35009