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

* [Bug c++/51399] [4.7 Regression] ICE with invalid initializer list
  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 ` reichelt at gcc dot gnu.org
  2011-12-05 12:00 ` [Bug c++/51399] [c++0x] " 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-12-04  0:09 UTC (permalink / raw)
  To: gcc-bugs

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

Volker Reichelt <reichelt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery,
                   |                            |ice-checking,
                   |                            |ice-on-invalid-code
   Target Milestone|---                         |4.7.0


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

* [Bug c++/51399] [c++0x] [4.7 Regression] ICE with invalid initializer list
  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 ` 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
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-12-05 12:00 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-12-05
         AssignedTo|unassigned at gcc dot       |paolo.carlini at oracle dot
                   |gnu.org                     |com
     Ever Confirmed|0                           |1

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-05 12:00:16 UTC ---
On it.


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

* [Bug c++/51399] [c++0x] [4.7 Regression] ICE with invalid initializer list
  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
  3 siblings, 0 replies; 5+ messages in thread
From: paolo at gcc dot gnu.org @ 2011-12-05 20:45 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-12-05 20:44:54 UTC ---
Author: paolo
Date: Mon Dec  5 20:44:50 2011
New Revision: 182025

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182025
Log:
/cp
2011-12-05  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/51399
    * init.c (perform_member_init): Early return if init is error_mark_node.

/testsuite
2011-12-05  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/51399
    * g++.dg/cpp0x/initlist62.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/initlist62.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/init.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/51399] [c++0x] [4.7 Regression] ICE with invalid initializer list
  2011-12-04  0:08 [Bug c++/51399] New: [4.7 Regression] ICE with invalid initializer list reichelt at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-12-05 20:45 ` paolo at gcc dot gnu.org
@ 2011-12-05 20:46 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-12-05 20:46 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-05 20:46:10 UTC ---
Fixed.


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