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

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).