This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/47335] New: "sorry, unimplemented: mangling overload"


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: unassigned@gcc.gnu.org
        ReportedBy: zeratul976@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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]