This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34915] -std=f95 rejects len_trim() and index() in init expressions
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2008 10:30:03 -0000
- Subject: [Bug fortran/34915] -std=f95 rejects len_trim() and index() in init expressions
- References: <bug-34915-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from dfranke at gcc dot gnu dot org 2008-01-22 10:30 -------
Index: fortran/expr.c
===================================================================
--- fortran/expr.c (revision 131693)
+++ fortran/expr.c (working copy)
@@ -2109,7 +2109,8 @@ check_elemental (gfc_expr *e)
|| !e->value.function.isym->elemental)
return MATCH_NO;
- if ((e->ts.type != BT_INTEGER || e->ts.type != BT_CHARACTER)
+ if (e->ts.type != BT_INTEGER
+ && e->ts.type != BT_CHARACTER
&& gfc_notify_std (GFC_STD_F2003, "Extension: Evaluation of "
"nonstandard initialization expression at %L",
&e->where) == FAILURE)
--
dfranke at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |dfranke at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2008-01-22 09:38:28 |2008-01-22 10:30:03
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34915