public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51399] New: [4.7 Regression] ICE with invalid initializer list
@ 2011-12-04  0:08 reichelt at gcc dot gnu.org
  2011-12-04  0:09 ` [Bug c++/51399] " 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-12-04  0:08 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51399

             Bug #: 51399
           Summary: [4.7 Regression] ICE with invalid initializer list
    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 invalid code snippet triggers an ICE on trunk:

============================================
#include <initializer_list>

struct A
{
  std::initializer_list<int> x[1] = { 0 };
  A() {}
};
============================================

bug.cc:5:41: error: could not convert '0' from 'int' to
'std::initializer_list<int>'
bug.cc: In constructor 'A::A()':
bug.cc:6:7: internal compiler error: tree check: expected tree_list, have
error_mark in perform_member_init, at cp/init.c:624
Please submit a full bug report, [etc.]


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-12-05 20:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-04  0:08 [Bug c++/51399] New: [4.7 Regression] ICE with invalid initializer list reichelt at gcc dot gnu.org
2011-12-04  0:09 ` [Bug c++/51399] " reichelt at gcc dot gnu.org
2011-12-05 12:00 ` [Bug c++/51399] [c++0x] " paolo.carlini at oracle dot com
2011-12-05 20:45 ` paolo at gcc dot gnu.org
2011-12-05 20:46 ` 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).