[Bug c++/43313] ICE with non-POD and covariant return thunks

segher at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 3 02:14:00 GMT 2017


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.


More information about the Gcc-bugs mailing list