[Bug c++/40970] Initialization of reference with temporary

2009-08-05 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2009-08-05 12:34 --- Eh, eh... *** This bug has been marked as a duplicate of 986 *** -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/40970] Initialization of reference with temporary

2009-08-05 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2009-08-05 12:29 --- Oh, you just want a warning for this. Indeed, ICC spills one with -Wall. Maybe Manuel has an opinion... -- paolo dot carlini at oracle dot com changed: What|Removed |Adde

[Bug c++/40970] Initialization of reference with temporary

2009-08-05 Thread paolo dot carlini at oracle dot com
--- 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 wi