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

2018-05-27 Thread achuah at drwsg dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: achuah at drwsg dot com Target Milestone: --- This probably should be classified under meta-bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59002 See this example on Godbolt's compiler

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

2018-05-27 Thread achuah at drwsg dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85943 --- Comment #1 from Anthony Chuah --- Clarifications: This bug applies to static variables, not non-static ones. Please use this example instead: https://godbolt.org/g/LzrzDj

[Bug c++/85943] Template function permits derived class access to private base class static variable

2018-05-27 Thread achuah at drwsg dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85943 Anthony Chuah changed: What|Removed |Added Summary|Template function permits |Template function permits

[Bug libstdc++/67632] explicit instantiation omits copy constructor and others

2018-01-10 Thread achuah at drwsg dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67632 --- Comment #9 from Anthony Chuah --- Forgot to add: this bug exists also for clang 5.0.0. % clang++ -std=c++11 --gcc-toolchain=/path/to/gcc t.o x.cc /tmp/x-063634.o: In function `copy(std::unordered_map

[Bug c++/83766] New: Bug 67632 not fixed yet

2018-01-10 Thread achuah at drwsg dot com
: unassigned at gcc dot gnu.org Reporter: achuah at drwsg dot com Target Milestone: --- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67632 I've tested it on gcc 6.1.0, and the same problem is still there. From the bug tracker it looks like the bug was acknowledged to be an issue

[Bug libstdc++/67632] explicit instantiation omits copy constructor and others

2018-01-10 Thread achuah at drwsg dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67632 Anthony Chuah changed: What|Removed |Added CC||achuah at drwsg dot com --- Comment #8