This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/84287] New: pointer to member function type with dependent parameter cannot be mangled
- From: "jens.maurer at gmx dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 08 Feb 2018 15:16:15 +0000
- Subject: [Bug c++/84287] New: pointer to member function type with dependent parameter cannot be mangled
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84287
Bug ID: 84287
Summary: pointer to member function type with dependent
parameter cannot be mangled
Product: gcc
Version: 7.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jens.maurer at gmx dot net
Target Milestone: ---
This is a (reduced) attempt at SFINAE, which fails with gcc 7.3:
struct S {
void f(const int&);
};
template<class T>
int g(T x, decltype(static_cast<void (S::*)(const T&)>(&S::f)) * = nullptr) { }
int x = g(0);
$ g++ x.cc
x.cc: In instantiation of ‘int g(T, decltype (static_cast<void (S::*)(const
T&)>(& S::f))*) [with T = int]’:
x.cc:6:5: sorry, unimplemented: mangling offset_ref
int g(T x, decltype(static_cast<void (S::*)(const T&)>(&S::f)) * = nullptr) {
}
^