1 2 3 4 5 6 7 8 9 10 11 12
// PR c++/35316 // { dg-options "-std=c++0x" } template<int> struct A { int i : 2; void foo() { decltype(i) j; } };