Commit 1590ea76 by Jason Merrill

update

From-SVN: r23187
parent 51924768
......@@ -21,7 +21,7 @@ struct0 *ptr;
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
}
......
......@@ -31,7 +31,7 @@ void A::main() {
void (A::*mPtr)() = &A::f1a;
(*(void (*)(A*))PMF2PF(mPtr))(&a);
(*(void (*)(A*))PMF2PF(f2a))(&a);
(*(void (*)(A*))PMF2PF(f2a))(&a); // gets bogus error XFAIL *-*-*
}
int main() {
......@@ -40,6 +40,6 @@ int main() {
void (A::*mPtr)() = &A::f1b;
(*(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;
}
......@@ -5,8 +5,6 @@
// An extern declaration of an undeclared object within a function
// introduces the object into the enclosing namespace [basic.link]/7
// excess errors test - XFAIL *-*-*
namespace {
void foo() {
extern int xx;
......
......@@ -14,5 +14,5 @@ S * pf;
void
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 {
void bar( double );
void bar( float );
void foo( void (a::*member)(float) ); // ERROR -
void foo( void (a::*member)(float) );
};
a::a()
{
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