1 // { dg-do assemble  }
2 // Bug: g++ fails to catch the ambiguity below.
3 
4 struct A {
5   operator int () { return 1; }
6   operator int &() { return 1; } // { dg-error "" }
7 };
8