[Bug c++/40389] optimizer bug (possibly)
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Jun 9 21:44:00 GMT 2009
------- Comment #7 from jakub at gcc dot gnu dot org 2009-06-09 21:44 -------
CCing Jason on the validity of the testcase.
I don't see anything wrong with remembering this pointer for the duration of
the object, assuming the pointer is gone from the list in the destructor
(that's what the testcase does).
And, assuming the testcase is valid, the pointer to the temporary really
escapes.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40389
More information about the Gcc-bugs
mailing list