------- 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