[Bug c++/85943] Template function permits outside access to private variable

achuah at drwsg dot com gcc-bugzilla@gcc.gnu.org
Mon May 28 04:22:00 GMT 2018


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

--- Comment #1 from Anthony Chuah <achuah at drwsg dot com> ---
Clarifications:

This bug applies to static variables, not non-static ones.

Please use this example instead: https://godbolt.org/g/LzrzDj


More information about the Gcc-bugs mailing list