// PR c++/35316 // { dg-do compile { target c++11 } } template struct A { int i : 2; void foo() { decltype(i) j; } };