This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/32489] Endless loop when compiling



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]