1 // PR c++/88120 2 // { dg-do compile { target c++11 } } 3 4 typedef int a; 5 enum b : a; 6 class c { 7 enum f { d }; 8 c(f); 9 friend c operator&(c, c); 10 typedef void (c::*e)(); 11 operator e(); 12 }; 13 class g { 14 template <typename, typename> b h(); 15 struct k { 16 c i; 17 }; 18 }; h()19template <typename, typename> b g::h() { 20 k j; 21 &j || j.i &c::d; 22 return b(); 23 } 24