From: Richard Kenner Date: Wed, 24 Aug 1994 18:34:20 +0000 (-0400) Subject: (push_init_level): Don't blow up if construct_type is null (can happen X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7eec3328e2b481e3bac07bda55e0fcbac2819377;p=gcc.git (push_init_level): Don't blow up if construct_type is null (can happen with missing brace). From-SVN: r7964 --- diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index f5ff3a56713..aedc7e5d02a 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -5155,8 +5155,8 @@ push_init_level (implicit) /* Structure elements may require alignment. Do this now if necessary for the subaggregate. */ - if (constructor_incremental && TREE_CODE (constructor_type) == RECORD_TYPE - && constructor_fields) + if (constructor_incremental && constructor_type != 0 + && TREE_CODE (constructor_type) == RECORD_TYPE && constructor_fields) { /* Advance to offset of this element. */ if (! tree_int_cst_equal (constructor_bit_index,