The following invalid code snippet triggers an ICE in the C frontend since GCC 4.1.0: ====================== void foo() { int i(); i += 0; } ====================== bug.c: In function 'foo': bug.c:4: internal compiler error: in default_conversion, at c-typeck.c:1619 Please submit a full bug report, [etc.]
Will not be fixed in 4.1.1; adjust target milestone to 4.1.2.
Testing a patch.
Subject: Bug number PR c/27721 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00855.html
Subject: Bug 27721 Author: reichelt Date: Sat Aug 5 23:26:38 2006 New Revision: 115955 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115955 Log: PR c/27721 * c-typeck.c (build_modify_expr): Test earlier for non-lvalues. * gcc.dg/lvalue-4.c: New test. Added: trunk/gcc/testsuite/gcc.dg/lvalue-4.c Modified: trunk/gcc/ChangeLog trunk/gcc/c-typeck.c trunk/gcc/testsuite/ChangeLog
Subject: Bug 27721 Author: reichelt Date: Sat Aug 5 23:33:54 2006 New Revision: 115956 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115956 Log: PR c/27721 * c-typeck.c (build_modify_expr): Test earlier for non-lvalues. * gcc.dg/lvalue-4.c: New test. Added: branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/lvalue-4.c Modified: branches/gcc-4_1-branch/gcc/ChangeLog branches/gcc-4_1-branch/gcc/c-typeck.c branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
Fixed on mainline and 4.1 branch.
*** Bug 29220 has been marked as a duplicate of this bug. ***