8sa1-gcc/gcc/testsuite/g++.old-deja/g++.mike/p8039.C
Jason Merrill 4495766362 fix implicit int
From-SVN: r23760
1998-11-22 18:23:45 -05:00

15 lines
173 B
C

// prms-id: 8039
class C {
public:
int func ();
};
extern void bar(int*);
int main()
{
int (C::*mfp)() = &C::func;
bar((int*)mfp); // ERROR - no clear semantics
}