[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"

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Aug 5 21:22:00 GMT 2011


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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |jason at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-05 21:22:33 UTC ---
TwoFoo z( { Foo(1), Foo(1) } );

is not valid; you can't copy-list-initialize a TwoFoo from { Foo(1), Foo(1) }
because brace elision is not allowed in that context.



More information about the Gcc-bugs mailing list