* cvt.c (convert_lvalue): New fn.
* cp-tree.h: Declare it.
* method.c (do_build_assign_ref): Use it.
(do_build_copy_constructor): Convert parm to base types
before calling base constructors.
From-SVN: r43798
class A;
class B;
+int c;
+
class A {
public:
virtual ~B(void){}
void print(void) const {
+ ++c;
printf("B::print\n");
}
{
A titi;
A toto = titi.compute();
- printf("PASS\n");
- return 0;
+ if (c != 1)
+ {
+ printf ("FAIL\n");
+ return 1;
+ }
+ else
+ {
+ printf("PASS\n");
+ return 0;
+ }
}