1 2 3 4 5 6 7 8 9 10
// PR c++/42277 // { dg-options -std=c++0x } struct S { int s; }; template <int N> void foo () { S s; decltype (s.s) i; }