From-SVN: r23187
This commit is contained in:
Jason Merrill 1998-10-19 16:13:15 -04:00
parent 51924768e7
commit 1590ea76e9
5 changed files with 6 additions and 9 deletions

View File

@ -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
}

View File

@ -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;
}

View File

@ -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;

View File

@ -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
}

View File

@ -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.
}