[Bug c++/105752] Template function can access private member

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 27 16:40:29 GMT 2022


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
There might already been a dup of this. Gcc does not do access checking until
instantiation time (as you saw) even for non dependent things.


More information about the Gcc-bugs mailing list