This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48292] New: [C++0x] "sorry, unimplemented: use of 'type_pack_expansion' in template"
- From: "zeratul976 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 25 Mar 2011 23:51:08 +0000
- Subject: [Bug c++/48292] New: [C++0x] "sorry, unimplemented: use of 'type_pack_expansion' in template"
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: zeratul976@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?