Hi, struct A { template <class T> auto func(T t) -> decltype(T::member); }; struct B: A { using A::func; template <class T> auto func(T t) -> decltype(T::other); }; struct P { int member; }; void call(B b, P p) { b.func(p); } GCC accepts this; ICC and clang reject this, refusing to introduce A::func in B. See also [namespace.udecl](15): "When a using-declaration brings declarations from a base class into a derived class, member functions and member function templates in the derived class override and/or hide member functions and member function templates with the same name, parameter-type-list (8.3.5), cv-qualification, and ref-qualifier (if any) in a base class (rather than conflicting). Such hidden or overridden declarations are excluded from the set of declarations introduced by the using-declaration." Cheers, Axel.
A rejects-valid case: struct C { template<int> void f(); }; struct D : C { template<char> void f(); using C::f; }; int main(){ D().f<0>(); } GCC rejects as ambiguous, Clang accepts as it only considers the template<char> one.
GCC now accepts comment 1, but still accepts comment 0.