// PR c++/42277 // { dg-options -std=c++0x } struct S { int s; }; template void foo () { S s; decltype (s.s) i; }