[Bug regression/64112] Optimized away string literal leads to a core dump
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Nov 29 05:19:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64112
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Y y("str");
Produces a temporary X which is destroyed after the statement as the life time
is not extended.
More information about the Gcc-bugs
mailing list