This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/85943] Template function permits outside access to private variable
- From: "achuah at drwsg dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 28 May 2018 04:22:08 +0000
- Subject: [Bug c++/85943] Template function permits outside access to private variable
- Auto-submitted: auto-generated
- References: <bug-85943-4@http.gcc.gnu.org/bugzilla/>
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