1 // PR c++/28852 2 // { do-do compile } 3 4 struct A 5 { 6 operator int&(int); // { dg-error "3:.A::operator int&\\(int\\). must have no arguments" } 7 }; 8 9 A a; 10 int& i = a; // { dg-error "initialization" } 11