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
This commit is contained in:
Mark Mitchell 2001-11-29 21:44:57 +00:00
parent c1d5afc412
commit 45aff9968e
1 changed files with 2 additions and 2 deletions

View 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;