From 7eec3328e2b481e3bac07bda55e0fcbac2819377 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 24 Aug 1994 14:34:20 -0400 Subject: [PATCH] (push_init_level): Don't blow up if construct_type is null (can happen with missing brace). From-SVN: r7964 --- gcc/c-typeck.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.30.2