https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67650
Jonathan Briggs <zlynx at acm dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zlynx at acm dot org --- Comment #12 from Jonathan Briggs <zlynx at acm dot org> --- This looks incredibly similar to a bug I found this week compiling my code with GCC 6.0. My code was much more complex, which has made it really difficult to write a small reproducer, but I also have a virtual function that is overriding an abstract base class. The implementation function is defined inline and is part of a template class. In code compiled with O2 or O3 the function call and all following code simply disappears from the assembly.