https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86238
Bug ID: 86238
Summary: a vtable layout bug
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: zhonghao at pku dot org.cn
Target Milestone: ---
Created attachment 44303
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44303&action=edit
testcase
The code sample is attached.
clang++ produces many errors when compiling the attached code, but g++ does not
produce any errors.
I thought that this is clang bug, so I reported it to
https://bugs.llvm.org/show_bug.cgi?id=37720.
Richard Smith said that the errors of clang are correct. So, is this a bug in
g++?