2 // g++ 1.36.1 bug 900213_03
4 // g++ fails to detect an error when the address of a "bound" function is
5 // assigned to a pointer-to-member-function variable.
7 // It does however correctly detect a similar errors for data-members.
9 // keywords: bound function, operator&, member pointers
13 int function_member ();
18 int (struct0::*fmp) ();
22 void global_function_0 ()
24 fmp = &ptr->function_member; // { dg-error "" }
25 //dmp = &ptr->data_member; // caught by g++, missed by cfront
28 int main () { return 0; }