https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63532
Bug ID: 63532
Summary: Cannot increase access of member function template.
Product: gcc
Version: 4.9.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: bugs at qult dot net
The following code is rejected by GCC while it is accepted by Clang.
struct Foo {
template <typename>
void meth();
};
struct Bar : private Foo {
using Foo::meth;
};
int main()
{
(void) &Bar::meth<int>;
}
GCC accepts a variant where Foo::meth is a plain (i.e., non-template) member
function.