The following valid code snippet triggers an ICE on mainline when compiled with "-Wall": ========================================= void foo() { while (1) for (;;({ continue; })) ; } ========================================= bug.c: In function 'foo': bug.c:4: internal compiler error: Segmentation fault Please submit a full bug report, [etc.] The bug appeared between 2008-03-15 and 2008-03-20. The C++ frontend is not affected.
This is a predict_expr tree. Shouldn't TREE_SIDE_EFFECTS be set on that expression?
Honza?
*** Bug 35893 has been marked as a duplicate of this bug. ***
Subject: Bug 35736 Author: meissner Date: Thu Jul 3 16:22:12 2008 New Revision: 137425 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=137425 Log: PR 35736 -- use void_type_node for PREDICT_EXPR tree Added: trunk/gcc/testsuite/gcc.dg/pr35736.c Modified: trunk/gcc/ChangeLog trunk/gcc/predict.c trunk/gcc/testsuite/ChangeLog
Created attachment 15849 [details] Patch to fix 35736 Committed in revision 137425 of the mainline.
Fixed.