Rebase.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / overload8.C
blob2987ae51ada323e9c78aed96fd1123e4e5aaab4f
1 // { dg-do assemble  }
2 // Bug: g++ fails to catch the ambiguity below.
4 struct A {
5   operator int () { return 1; }
6   operator int &() { return 1; } // { dg-error "" } 
7 };