Commit 45aff996 by Mark Mitchell

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
parent c1d5afc4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment