[Bug c++/78308] Hiding of member function templates introduced by using-decl

rs2740 at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Mar 24 18:44:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78308

TC <rs2740 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rs2740 at gmail dot com

--- Comment #1 from TC <rs2740 at gmail dot com> ---
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.


More information about the Gcc-bugs mailing list