This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/49669] [4.6/4.7 Regression] [C++0x] Compiler crashes with "internal compiler error: in perform_member_init, at cp/init.c:530"


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.07.07 11:27:31
      Known to work|                            |4.5.2
            Summary|Compiler crashes with       |[4.6/4.7 Regression]
                   |"internal compiler error:   |[C++0x] Compiler crashes
                   |in perform_member_init, at  |with "internal compiler
                   |cp/init.c:530"              |error: in
                   |                            |perform_member_init, at
                   |                            |cp/init.c:530"
     Ever Confirmed|0                           |1
      Known to fail|                            |4.6.1, 4.7.0

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-07-07 11:27:31 UTC ---
The code is invalid, to initialize the array you need:
   x{Foo(4), Foo(5)} 

4.5 correctly rejects it:
b.cc: In constructor 'Goo::Goo()':
b.cc:2:38: error: bad array initializer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]