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

           Summary: "sorry, unimplemented: mangling overload"
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: zeratul...@hotmail.com


For the following code:

struct A
{
    template <typename T>
    int f(T);
};

template <typename T>
auto g(T x) -> decltype(A().f(x));

void h() { g(0); }

gcc trunk gives the error:

test.cpp: In function ‘void h()’:
test.cpp:10: sorry, unimplemented: mangling overload

As far as I can tell, this is valid C++0x code.

Are there any plans to implement this? I wasn't able to find an existing bug
about it.

Reply via email to