public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48292] New: [C++0x] "sorry, unimplemented: use of 'type_pack_expansion' in template"
@ 2011-03-26  1:34 zeratul976 at hotmail dot com
  2011-03-26  2:43 ` [Bug c++/48292] " zeratul976 at hotmail dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: zeratul976 at hotmail dot com @ 2011-03-26  1:34 UTC (permalink / raw)
  To: gcc-bugs

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?


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-05-25 15:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-26  1:34 [Bug c++/48292] New: [C++0x] "sorry, unimplemented: use of 'type_pack_expansion' in template" zeratul976 at hotmail dot com
2011-03-26  2:43 ` [Bug c++/48292] " zeratul976 at hotmail dot com
2011-03-26  4:03 ` zeratul976 at hotmail dot com
2011-03-28 16:47 ` paolo.carlini at oracle dot com
2011-05-24 13:13 ` redi at gcc dot gnu.org
2011-05-24 13:23 ` redi at gcc dot gnu.org
2011-05-25  4:41 ` jason at gcc dot gnu.org
2011-05-25  9:29 ` redi at gcc dot gnu.org
2011-05-25 14:35 ` jason at gcc dot gnu.org
2011-05-25 15:32 ` jason at gcc dot gnu.org
2011-05-25 15:35 ` jason at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).