c++/672: gcc treats temporary as rvalue when passing references
Jason Merrill
jason@redhat.com
Sun Feb 18 04:01:00 GMT 2001
`Jason Merrill' changed the state to `closed'.
State-Changed-From-To: open-closed
State-Changed-By: jason
State-Changed-When: Sun Feb 18 11:57:39 2001
State-Changed-Why:
This is not a bug:
3.10 Lvalues and rvalues [basic.lval]
6 An expression which holds a temporary object resulting from a cast to
a nonreference type is an rvalue (this includes the explicit creation
of an object using functional notation (_expr.type.conv_)).
More information about the Gcc-bugs
mailing list