[Bug c++/14458] 3.4 Regression : const_cast suddenly (treated as) temporary?
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Sat Mar 6 16:27:00 GMT 2004
------- Additional Comments From pcarlini at suse dot de 2004-03-06 16:27 -------
According to 5.2.11, p1: "The result of the expression const_cast<T>(v) is of
type T. If T is a reference type, the result is an lvalue; otherwise, the result
is an rvalue and, ...", therefore the current behavior seems definitely correct.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14458
More information about the Gcc-bugs
mailing list