This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47335] New: "sorry, unimplemented: mangling overload"
- From: "zeratul976 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 17 Jan 2011 20:55:12 +0000
- Subject: [Bug c++/47335] New: "sorry, unimplemented: mangling overload"
- Auto-submitted: auto-generated
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.