// PR c++/68586 // { dg-do compile { target c++11 } } enum E { x , y = 1 + (x << 1) }; template struct A {}; A a; enum E2 : int { x2 , y2 = x2 << 1 }; template struct A2 {}; A2 a2; enum class E3 { x3 , y3 = x3 << 1 }; template struct A3 {}; A3 a3;