https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88818
Bug ID: 88818 Summary: Segfault with vtable-verify LTO optimization Product: gcc Version: 8.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jagapeyev at gmail dot com Target Milestone: --- struct a { virtual int b(); }; void c() {} Compiling the above program with: g++ -c test.cpp -O1 -flto -fvtable-verify=preinit Results in the following error: during GIMPLE pass: ealias test.cpp: In function ‘_GLOBAL__sub_I.00099__Z1cv’: test.cpp:4:11: internal compiler error: Segmentation fault void c() {} ^ Attached is the full gcc -v -save-temps output. >From preliminary tests, -fvtable-verify=std vs -fvtable-verify=preinit makes no difference. Error does not exist with -O0 or -Og, but does exist at -O1 and higher.