From: Mark Mitchell Date: Thu, 29 Nov 2001 21:44:57 +0000 (+0000) Subject: re PR c++/3471 (gcc 3.01 reports error about a private copy constructor that shouldn... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=45aff9968ebeae5b26dd05f39242ab9e17ad0797;p=gcc.git 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: r47455 --- diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p5469a.C b/gcc/testsuite/g++.old-deja/g++.mike/p5469a.C index 9cbd2dfe7a8..0783f77dffe 100644 --- a/gcc/testsuite/g++.old-deja/g++.mike/p5469a.C +++ b/gcc/testsuite/g++.old-deja/g++.mike/p5469a.C @@ -4,7 +4,7 @@ int count; class A { A(); - A(const A&); // ERROR - referenced below + A(const A&); public: A(int) { ++count; } ~A() { --count; } @@ -14,7 +14,7 @@ public: int main() { { A a (1); - if (a == 2 || a == 1) // ERROR - private copy ctor + if (a == 2 || a == 1) ; } return count;