This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49355] new T({""}) crashes G++ when struct T { std::string foobar };
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 10 Jun 2011 09:37:50 +0000
- Subject: [Bug c++/49355] new T({""}) crashes G++ when struct T { std::string foobar };
- Auto-submitted: auto-generated
- References: <bug-49355-4@http.gcc.gnu.org/bugzilla/>
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.