2 // g++ 1.36.1 bug 900212_02
4 // g++ fails to flag as errors attempts to take the difference of two values
5 // of some compatible pointer-to-member type.
7 // Cfront 2.0 passes this test.
9 // keywords: pointer arithmetic, subtraction, member pointers
17 int (struct0::*fp0) ();
18 int (struct0::*fp1) ();
22 void global_function_0 ()
24 result = (p0 - p1); // { dg-error "" }
25 result = (fp0 - fp1); // { dg-error "" }
28 int main () { return 0; }