// Contributed by Dodji Seketeli // { dg-options "-std=c++0x" } // { dg-do compile } struct F { F(int) {}}; template struct S { decltype(u) foo(T); }; template decltype(u) S::foo(T) { T t; return t; }