1 // Core DR 1604/1571/1572
2 // { dg-require-effective-target c++11 }
5 struct Enigma { operator const Banana(); };
6 struct Doof { operator Banana&(); };
8 typedef const Banana ConstBanana;
9 Banana &&banana1 = ConstBanana(); // { dg-error "" }
10 Banana &&banana2 = Enigma(); // { dg-error "" }
11 Banana &&banana3 = Doof(); // { dg-error "" }
16 operator volatile int &();
20 const int & ir1a = a.operator volatile int&(); // { dg-error "" }
21 const int & ir2a = a; // { dg-error "" }
26 int&& rri2 = X(); // { dg-error "" }