2 // g++ 1.37.1 bug 900511_01
4 // g++ fails to properly apply user-defined type conversion operators
5 // in cases where is it not obvious that the given conversion is
6 // appropriate for the context (i.e. operator and other operands)
7 // where the conversion should take place.
9 // cfront 2.0 passes this test.
17 struct_1::operator int ()
28 struct_2::operator float ()
33 struct_1 struct_1_object;
34 struct_2 struct_2_object;
39 d = struct_2_object + struct_1_object; // OK
40 d = struct_1_object + struct_2_object; // { dg-bogus "" }
43 int main () { return 0; }