This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14458] 3.4 Regression : const_cast suddenly (treated as) temporary?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]