2 // g++ 1.36.1 bug 900212_03
4 // g++ segfaults on any attempt to use the ->* operator.
6 // Cfront 2.0 passes this test.
8 // keywords: member pointers, operator->*
12 void function_member ();
15 void struct0::function_member ()
22 void (struct0::*fmp) ();
26 void global_function_0 ()
28 i = ptr->*dmp; // causes segfault
29 (ptr->*fmp) (); // causes segfault
30 // i = ptr->*(&struct0::data_member); // too complicated for cfront
31 // (ptr->*(&struct0::function_member)) (); // too complicated for cfront
34 int main () { return 0; }