[Bug c++/99160] A wrong accessible check when using a using-declaration that introduces the names of type and function

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Aug 16 10:06:17 GMT 2021


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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think GCC is correct here. The using-declaration finds a class and a
function, and ignores the class, which means it only redeclares the function as
public. That means B::C is indeed referring to a private name.


More information about the Gcc-bugs mailing list