]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c/9799 (mismatching structure initializer with nested flexible array member...
authorEric Botcazou <ebotcazou@libertysurf.fr>
Wed, 5 Mar 2003 09:00:43 +0000 (10:00 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 5 Mar 2003 09:00:43 +0000 (09:00 +0000)
PR c/9799
* c-typeck.c (push_init_level): Add sanity check.

From-SVN: r63835

gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog

index 2035fa9d68c19fc010e2b7bd438e50751a909b0a..5d7f88892d034b871928840c2a8bdc7201190b67 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       PR c/9799
+       * c-typeck.c (push_init_level): Add sanity check.
+
 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
 
        Backport following patch:
index 17e314489ea7b02c373428caa40314d7b5ed84e2..1d86fbaa95615d27fd1636678e6edeca0ac1e9e8 100644 (file)
@@ -5292,6 +5292,7 @@ push_init_level (implicit)
          && constructor_fields == 0)
        process_init_element (pop_init_level (1));
       else if (TREE_CODE (constructor_type) == ARRAY_TYPE
+              && constructor_max_index 
               && tree_int_cst_lt (constructor_max_index, constructor_index))
        process_init_element (pop_init_level (1));
       else
index 22f578bbb3e762d0784bf431bc7b02f334a9587f..6eb7302f8831223f15b966522fad2ad7fbd4e6be 100644 (file)
@@ -1,3 +1,7 @@
+2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * gcc.c-torture/compile/20030305-1.c
+
 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
 
        PR target/9732