1 // PR c++/42277 2 // { dg-do compile { target c++11 } } 3 4 struct S { int s; }; 5 template <int N> foo()6 void foo () 7 { 8 S s; 9 decltype (s.s) i; 10 } 11