re PR c++/3471 (gcc 3.01 reports error about a private copy constructor that shouldn...
authorMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 29 Nov 2001 21:44:57 +0000 (21:44 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 29 Nov 2001 21:44:57 +0000 (21:44 +0000)
PR c++/3471
* call.c (convert_like_real): Do not build additional temporaries
for rvalues of class type.

From-SVN: r47455

gcc/testsuite/g++.old-deja/g++.mike/p5469a.C

index 9cbd2dfe7a80b83ddad4cbaca66f456782876025..0783f77dffe04ab24294c283995d257df00003cf 100644 (file)
@@ -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;