[Bug c++/100335] Using statement of a ref-qualified method from base class: method not callable on derived object
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 3 14:15:10 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100335
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Like I already suggested in comment 3:
Either the overloads should conflict because of [over.load]/2.3 (and the
definition of Derived should be ill-formed) or they should be hidden and not
visible in Derived (so the call to test.method() should be ill-formed).
More information about the Gcc-bugs
mailing list