https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43313
Segher Boessenkool <segher at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |segher at gcc dot gnu.org Resolution|--- |FIXED --- Comment #9 from Segher Boessenkool <segher at gcc dot gnu.org> --- At least GCC 6 and later refuse this testcase: 36:7: error: 'virtual ICarousel::~ICarousel()' is private within this context (but it accepts it with -std=c++03). I cannot get it to crash with 4.9 or later, -O1 or -O2, -m32 or -m64. Closing as fixed.