aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>2001-11-29 21:44:57 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2001-11-29 21:44:57 +0000
commit45aff9968ebeae5b26dd05f39242ab9e17ad0797 (patch)
tree3b225884157083b6bb68d0da167cef6f6eda575c /gcc
parentc1d5afc412f820af3a04c5d3c9ddf53d160752ec (diff)
downloadgcc-45aff9968ebeae5b26dd05f39242ab9e17ad0797.zip
gcc-45aff9968ebeae5b26dd05f39242ab9e17ad0797.tar.gz
gcc-45aff9968ebeae5b26dd05f39242ab9e17ad0797.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.mike/p5469a.C4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p5469a.C b/gcc/testsuite/g++.old-deja/g++.mike/p5469a.C
index 9cbd2df..0783f77 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;