[Bug c++/67650] undef reference with -fdevirtualize
zlynx at acm dot org
gcc-bugzilla@gcc.gnu.org
Fri Apr 22 07:32:00 GMT 2016
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.
More information about the Gcc-bugs
mailing list