// Contributed by Dodji Seketeli // { dg-do compile { target c++11 } } struct F { F(int) {}}; template struct S { decltype(u) foo(T); }; template decltype(u) S::foo(T) { T t; return t; }