Commit 1590ea76 by Jason Merrill

update

From-SVN: r23187
parent 51924768
...@@ -21,7 +21,7 @@ struct0 *ptr; ...@@ -21,7 +21,7 @@ struct0 *ptr;
void global_function_0 () void global_function_0 ()
{ {
fmp = &ptr->function_member; // ERROR - missed by g++, warned by cfront, XFAIL *-*-* fmp = &ptr->function_member; // ERROR -
//dmp = &ptr->data_member; // caught by g++, missed by cfront //dmp = &ptr->data_member; // caught by g++, missed by cfront
} }
......
...@@ -31,7 +31,7 @@ void A::main() { ...@@ -31,7 +31,7 @@ void A::main() {
void (A::*mPtr)() = &A::f1a; void (A::*mPtr)() = &A::f1a;
(*(void (*)(A*))PMF2PF(mPtr))(&a); (*(void (*)(A*))PMF2PF(mPtr))(&a);
(*(void (*)(A*))PMF2PF(f2a))(&a); (*(void (*)(A*))PMF2PF(f2a))(&a); // gets bogus error XFAIL *-*-*
} }
int main() { int main() {
...@@ -40,6 +40,6 @@ int main() { ...@@ -40,6 +40,6 @@ int main() {
void (A::*mPtr)() = &A::f1b; void (A::*mPtr)() = &A::f1b;
(*(void (*)(A*))PMF2PF(a.*mPtr))(&a); (*(void (*)(A*))PMF2PF(a.*mPtr))(&a);
(*(void (*)(A*))PMF2PF(a.f2a))(&a); (*(void (*)(A*))PMF2PF(a.f2a))(&a); // gets bogus error XFAIL *-*-*
return ok != 3+3+5+5+7+7; return ok != 3+3+5+5+7+7;
} }
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
// An extern declaration of an undeclared object within a function // An extern declaration of an undeclared object within a function
// introduces the object into the enclosing namespace [basic.link]/7 // introduces the object into the enclosing namespace [basic.link]/7
// excess errors test - XFAIL *-*-*
namespace { namespace {
void foo() { void foo() {
extern int xx; extern int xx;
......
...@@ -14,5 +14,5 @@ S * pf; ...@@ -14,5 +14,5 @@ S * pf;
void void
f() f()
{ {
pmf = & pf->f; // ERROR - not a valid pmf expression - XFAIL *-*-* pmf = & pf->f; // ERROR - not a valid pmf expression
} }
...@@ -10,12 +10,11 @@ struct a { ...@@ -10,12 +10,11 @@ struct a {
void bar( double ); void bar( double );
void bar( float ); void bar( float );
void foo( void (a::*member)(float) ); // ERROR - void foo( void (a::*member)(float) );
}; };
a::a() a::a()
{ {
foo( &junk ); // ERROR - junk is an unqualified-id. foo( &junk ); // ERROR - junk is an unqualified-id.
foo( &bar ); // ERROR - bar is an unqualified-id. XFAIL *-*-* foo( &bar ); // ERROR - bar is an unqualified-id.
} }
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