[Bug c++/40970] Initialization of reference with temporary
paolo dot carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Wed Aug 5 12:25:00 GMT 2009
------- Comment #1 from paolo dot carlini at oracle dot com 2009-08-05 12:25 -------
This is just triggering undefined behavior: after the constructor call dim is
bound to a temporary long created on the fly from the double _dim, which
disappears by the time newValue is called. Nothing to do with std::valarray or
whatelse.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40970
More information about the Gcc-bugs
mailing list