[Bug c/32295] [4.1/4.2 Regression] An invalid c code causes an ICE in create_tmp_var, at gimplify.c:489
jsm28 at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Oct 10 18:24:00 GMT 2007
------- Comment #8 from jsm28 at gcc dot gnu dot org 2007-10-10 18:24 -------
Subject: Bug 32295
Author: jsm28
Date: Wed Oct 10 18:24:29 2007
New Revision: 129215
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129215
Log:
PR c/32295
* c-typeck.c (default_conversion): Call require_complete_type
before perform_integral_promotions.
(build_unary_op): Call require_complete_type except for ADDR_EXPR.
(build_c_cast): Call require_complete_type except for casts to
void types.
(convert_for_assignment): Call require_complete_type.
testsuite:
* gcc.dg/enum-incomplete-1.c: New test.
Added:
branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/enum-incomplete-1.c
Modified:
branches/gcc-4_2-branch/gcc/ChangeLog
branches/gcc-4_2-branch/gcc/c-typeck.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32295
More information about the Gcc-bugs
mailing list