http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48292
Summary: [C++0x] "sorry, unimplemented: use of 'type_pack_expansion' in template" Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: zeratul...@hotmail.com For the following code: template <typename... Args> int g(Args...); template <int N = 0> struct A { template <typename... Args> static auto f(Args... args) -> decltype(g(args...)); }; int main() { A<>::f(); return 0; } gcc gives the following errors: test.cpp: In function 'int main()': test.cpp:7:27: sorry, unimplemented: use of 'type_pack_expansion' in template test.cpp:12:12: error: no matching function for call to 'A<>::f()' test.cpp:12:12: note: candidate is: test.cpp:7:55: note: template<class ... Args> static decltype (g(A::f::args ...)) A::f(Args ...) [with Args = {Args ...}, int N = 0, decltype (g(A::f::args ...)) = int] Are there any plans to implement this?