http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60130

            Bug ID: 60130
           Summary: Sorry, unimplemented: mangling argument_pack_select
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vince.rev at gmail dot com

Hello.

Consider the following code in C++11:
------------------------------------------------------
#include <tuple>

template <class S, class F, class... T>
S f1(F f, T... x)
{
    return std::get<0>(std::make_tuple(f(x)...));
}

template <class... T>
int f2(const T... x)
{
    return std::get<0>(std::make_tuple(f1<T>([](int n){return n;}, x)...));
}

int main()
{
    return f2(42);
}
------------------------------------------------------

Under g++ 4.8.1 and 4.8.2 (I have not tried 4.9.0), it produces the following
compilation error: "sorry, unimplemented: mangling argument_pack_select". This
code compiles without any error under intel and clang.

Reply via email to