aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2001-11-29 20:19:41 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2001-11-29 20:19:41 +0000
commitb67db52985b8ed3a7b4a32f7948b50e6bff6f6b1 (patch)
treedc2415b0e8f3782ef58db5b79075527d91d8a441 /gcc/cp
parent004249997b5d72d28958a0220b60e5be8cf6bf18 (diff)
downloadgcc-b67db52985b8ed3a7b4a32f7948b50e6bff6f6b1.zip
gcc-b67db52985b8ed3a7b4a32f7948b50e6bff6f6b1.tar.gz
gcc-b67db52985b8ed3a7b4a32f7948b50e6bff6f6b1.tar.bz2
re PR c++/3471 (gcc 3.01 reports error about a private copy constructor that shouldn't get called.)
PR c++/3471 * call.c (convert_like_real): Do not build additional temporaries for rvalues of class type. From-SVN: r47451
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/call.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 029b0e8..8885245 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,9 @@
+2001-11-29 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/3471
+ * call.c (convert_like_real): Do not build additional temporaries
+ for rvalues of class type.
+
2001-11-28 Nathan Sidwell <nathan@codesourcery.com>
* cp-tree.h (UNIQUELY_DERIVED_FROM_P): Use lookup base.
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index fc1395c..e4256b6 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -3820,7 +3820,7 @@ convert_like_real (convs, expr, fn, argnum, inner)
If the target is a class, that means call a ctor. */
if (IS_AGGR_TYPE (totype)
- && (inner >= 0 || !real_lvalue_p (expr)))
+ && (inner >= 0 || !lvalue_p (expr)))
{
savew = warningcount, savee = errorcount;
expr = build_new_method_call