This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/70147] [6 Regression] testcase from hana testsuite gets miscompiled with -fsanitize=undefined
- From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 14 Mar 2016 15:30:37 +0000
- Subject: [Bug sanitizer/70147] [6 Regression] testcase from hana testsuite gets miscompiled with -fsanitize=undefined
- Auto-submitted: auto-generated
- References: <bug-70147-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70147
--- Comment #10 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Created attachment 37959
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37959&action=edit
proposed patch
I don't think that it is necessary to initialize virtual base class vptrs
here, because it is impossible to access them without first accessing
a vptr with a known constant offset.
I tried a bit but it is at least not obvious how to construct a test case
that uses virtual base classes in the same way as in pr70035.
If it is possible, then it must be something quite complicated.
So this is what I am trying to boot-strap & reg-test today.