[Bug middle-end/41354] g++: Inlining constructors puts wrong vtable in objects

mikpe at it dot uu dot se gcc-bugzilla@gcc.gnu.org
Mon Sep 14 15:01:00 GMT 2009



------- Comment #2 from mikpe at it dot uu dot se  2009-09-14 15:01 -------
Incomplete test case, compiling w/o -c results in linkage errors:

codegen.cc:(.text+0x1a): undefined reference to `CodeStub::get_code()'
codegen.cc:(.text+0x30): undefined reference to `CodeStub::get_code()'
codegen.cc:(.text+0x4c): undefined reference to `printf(char const*, int, int)'

Please post a self-contained test case that can be linked and executed to
reproduce the "pure virtual called" error.

(Manually inspecting the output of objdump -d is a very inefficient way of
checking for the presence or absence of a bug.)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41354



More information about the Gcc-bugs mailing list