constref1.C
308 Bytes
-
cp-tree.h, tree.c: New function non_cast_lvalue_p. · 6c6e776d
2002-09-13 Matt Austern <austern@apple.com> * cp/cp-tree.h, cp/tree.c: New function non_cast_lvalue_p. * cp/call.c: Change call-by-const-reference mechanism to use non_cast_lvalue_p when deciding whether the create a temporary. We need a temporary when passing, e.g. (long) x by const ref. * testsuite/g++.dg/other/constref[12].C: New, regression tests for passing a cast expression to a function by const reference. From-SVN: r57115
Matt Austern committed