re PR fortran/34990 (ICE in gfc_typenode_for_spec, at fortran/trans-types.c:842)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 27 Jan 2008 19:38:59 +0000 (19:38 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 27 Jan 2008 19:38:59 +0000 (19:38 +0000)
2008-01-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/34990
* array.c (gfc_check_constructor_type): Revert clearing the expression.

From-SVN: r131890

gcc/fortran/ChangeLog
gcc/fortran/array.c

index 9e0c2f0..282b06a 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR fortran/34990
+       * array.c (gfc_check_constructor_type): Revert clearing the expression.
+
 2008-01-26  Tobias Burnus  <burnus@net-b.de>
 
        PR fortran/34848
index 116937b..0c30b33 100644 (file)
@@ -1025,7 +1025,6 @@ gfc_check_constructor_type (gfc_expr *e)
 
   cons_state = CONS_START;
   gfc_clear_ts (&constructor_ts);
-  gfc_clear_ts (&e->ts);
 
   t = check_constructor_type (e->value.constructor);
   if (t == SUCCESS && e->ts.type == BT_UNKNOWN)