This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47850] [4.6 Regression] ICE in gfc_conv_array_initializer
- From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 6 Mar 2011 14:59:08 +0000
- Subject: [Bug fortran/47850] [4.6 Regression] ICE in gfc_conv_array_initializer
- Auto-submitted: auto-generated
- References: <bug-47850-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47850
--- Comment #11 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2011-03-06 14:59:05 UTC ---
Info: Does not fix it but why this behavior with the test case?
Index: expr.c
===================================================================
--- expr.c (revision 170543)
+++ expr.c (working copy)
@@ -946,6 +946,7 @@ gfc_is_constant_expr (gfc_expr *e)
return 1;
case EXPR_ARRAY:
+ /* return 1 here and it works. */
return gfc_constant_ac (e);
default: