[Bug c++/49355] new T({}) crashes G++ when struct T { std::string foobar };
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49355 Jason Merrill jason at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED CC||jason at gcc dot gnu.org AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org |gnu.org |
[Bug c++/49355] new T({}) crashes G++ when struct T { std::string foobar };
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49355 --- Comment #3 from Jason Merrill jason at gcc dot gnu.org 2011-07-01 00:03:39 UTC --- Author: jason Date: Fri Jul 1 00:03:34 2011 New Revision: 175736 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=175736 Log: PR c++/49355 * tree.c (stabilize_init): Handle aggregate initialization. Added: trunk/gcc/testsuite/g++.dg/cpp0x/initlist54.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/tree.c trunk/gcc/testsuite/ChangeLog
[Bug c++/49355] new T({}) crashes G++ when struct T { std::string foobar };
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49355 Jason Merrill jason at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED Target Milestone|--- |4.7.0 --- Comment #4 from Jason Merrill jason at gcc dot gnu.org 2011-07-01 00:07:34 UTC --- Fixed for 4.7.
[Bug c++/49355] new T({}) crashes G++ when struct T { std::string foobar };
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49355 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2011.06.10 09:37:35 Ever Confirmed|0 |1 Known to fail||4.4.5, 4.5.3, 4.6.0, 4.7.0 --- Comment #1 from Richard Guenther rguenth at gcc dot gnu.org 2011-06-10 09:37:35 UTC --- Confirmed. 4.3 rejected the code, so does the EDG frontend of ICC 12.0: t.C(7): error: expected an expression T* x = new T({}); so not sure if it is valid code or not.
[Bug c++/49355] new T({}) crashes G++ when struct T { std::string foobar };
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49355 --- Comment #2 from Jonathan Wakely redi at gcc dot gnu.org 2011-06-10 10:00:00 UTC --- it's only valid in C++0x