OSDN Git Service

PR c++/3471
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Nov 2001 21:44:57 +0000 (21:44 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Nov 2001 21:44:57 +0000 (21:44 +0000)
* call.c (convert_like_real): Do not build additional temporaries
for rvalues of class type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47455 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 9cbd2df..0783f77 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;