Commit 91885faa by Jason Merrill

fix

From-SVN: r18636
parent 6591521a
......@@ -21,7 +21,7 @@ struct C : public A
struct D : public B, public C
{
virtual int g() {
int D::*pmd = &C::comm;
int D::*pmd = (int C::*)&C::comm;
return (this->*pmd) == 42;
}
D() : B(41), C(42) { }
......
......@@ -2,7 +2,7 @@
// excess errors test - XFAIL a29k-*-* sparc64-*-elf sh-*-* arm-*-pe**-*
// prms-id: 11667
extern "C" printf(const char *,...);
extern "C" int printf(const char *,...);
template < class T >
class LIST {
......
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