public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/51216] New: [4.6/4.7 Regression] ICE with statement expression @ 2011-11-18 23:01 reichelt at gcc dot gnu.org 2011-11-18 23:02 ` [Bug c++/51216] " reichelt at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: reichelt at gcc dot gnu.org @ 2011-11-18 23:01 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51216 Bug #: 51216 Summary: [4.6/4.7 Regression] ICE with statement expression Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: reichelt@gcc.gnu.org The following code snippet triggers an ICE since GCC 4.6.0 when compiled with "-std=c++0x": ========================== void foo() { int i = ({ if (1) ; }); } ========================== bug.cc: In function 'void foo()': bug.cc:3:24: sorry, unimplemented: unexpected AST of kind if_stmt bug.cc:3:24: internal compiler error: in potential_constant_expression_1, at cp/semantics.c:8426 Please submit a full bug report, [etc.] ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51216] [4.6/4.7 Regression] ICE with statement expression 2011-11-18 23:01 [Bug c++/51216] New: [4.6/4.7 Regression] ICE with statement expression reichelt at gcc dot gnu.org @ 2011-11-18 23:02 ` reichelt at gcc dot gnu.org 2011-11-18 23:27 ` paolo.carlini at oracle dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: reichelt at gcc dot gnu.org @ 2011-11-18 23:02 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51216 Volker Reichelt <reichelt at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code Target Milestone|--- |4.6.3 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51216] [4.6/4.7 Regression] ICE with statement expression 2011-11-18 23:01 [Bug c++/51216] New: [4.6/4.7 Regression] ICE with statement expression reichelt at gcc dot gnu.org 2011-11-18 23:02 ` [Bug c++/51216] " reichelt at gcc dot gnu.org @ 2011-11-18 23:27 ` paolo.carlini at oracle dot com 2011-11-19 23:57 ` paolo at gcc dot gnu.org 2011-12-21 18:35 ` [Bug c++/51216] [4.6 " paolo.carlini at oracle dot com 3 siblings, 0 replies; 5+ messages in thread From: paolo.carlini at oracle dot com @ 2011-11-18 23:27 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51216 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2011-11-18 Ever Confirmed|0 |1 --- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-11-18 23:21:46 UTC --- Likewise for { while (1) ; } or { for (;;) ; } for example. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51216] [4.6/4.7 Regression] ICE with statement expression 2011-11-18 23:01 [Bug c++/51216] New: [4.6/4.7 Regression] ICE with statement expression reichelt at gcc dot gnu.org 2011-11-18 23:02 ` [Bug c++/51216] " reichelt at gcc dot gnu.org 2011-11-18 23:27 ` paolo.carlini at oracle dot com @ 2011-11-19 23:57 ` paolo at gcc dot gnu.org 2011-12-21 18:35 ` [Bug c++/51216] [4.6 " paolo.carlini at oracle dot com 3 siblings, 0 replies; 5+ messages in thread From: paolo at gcc dot gnu.org @ 2011-11-19 23:57 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51216 --- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-11-19 23:17:16 UTC --- Author: paolo Date: Sat Nov 19 23:17:12 2011 New Revision: 181517 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181517 Log: /cp 2011-11-19 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51216 * semantics.c (potential_constant_expression_1): Handle IF_STMT, DO_STMT, FOR_STMT, and WHILE_STMT. /testsuite 2011-11-19 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51216 * g++.dg/cpp0x/pr51216.C: New. Added: trunk/gcc/testsuite/g++.dg/cpp0x/pr51216.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/semantics.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51216] [4.6 Regression] ICE with statement expression 2011-11-18 23:01 [Bug c++/51216] New: [4.6/4.7 Regression] ICE with statement expression reichelt at gcc dot gnu.org ` (2 preceding siblings ...) 2011-11-19 23:57 ` paolo at gcc dot gnu.org @ 2011-12-21 18:35 ` paolo.carlini at oracle dot com 3 siblings, 0 replies; 5+ messages in thread From: paolo.carlini at oracle dot com @ 2011-12-21 18:35 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51216 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Target Milestone|4.6.3 |4.7.0 --- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-21 18:29:44 UTC --- Fixed for 4.7.0. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-12-21 18:31 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-11-18 23:01 [Bug c++/51216] New: [4.6/4.7 Regression] ICE with statement expression reichelt at gcc dot gnu.org 2011-11-18 23:02 ` [Bug c++/51216] " reichelt at gcc dot gnu.org 2011-11-18 23:27 ` paolo.carlini at oracle dot com 2011-11-19 23:57 ` paolo at gcc dot gnu.org 2011-12-21 18:35 ` [Bug c++/51216] [4.6 " paolo.carlini at oracle dot com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).