This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32489] Endless loop when compiling
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jan 2008 22:01:42 -0000
- Subject: [Bug fortran/32489] Endless loop when compiling
- References: <bug-32489-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pault at gcc dot gnu dot org 2008-01-11 22:01 -------
(In reply to comment #4)
Will 2.5s do you on amd64/Cygwin_nt?
Index: gcc/fortran/array.c
===================================================================
*** gcc/fortran/array.c (revision 131469)
--- gcc/fortran/array.c (working copy)
*************** gfc_expand_constructor (gfc_expr *e)
*** 1401,1406 ****
--- 1401,1409 ----
gfc_expr *f;
try rc;
+ if (!gfc_is_constant_expr (e))
+ return SUCCESS;
+
f = gfc_get_array_element (e, GFC_MAX_AC_EXPAND);
if (f != NULL)
{
...yet to be regtested but rather obvious.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32489