1 // PR c++/89705 2 // { dg-do compile { target c++11 } } 3 4 struct W { operator const volatile int(); }; 5 const int& rci = W(); 6 7 struct X { operator const int(); }; 8 int&& rri = X(); 9 10 struct Y { operator volatile int(); }; 11 int&& rri2 = Y(); 12 13 struct Z { operator const volatile int(); }; 14 volatile int&& rri3 = Z(); 15 16 enum E { A }; 17 struct S { operator const E(); }; 18 E&& rre = S(); 19