This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/70147] [6 Regression] testcase from hana testsuite gets miscompiled with -fsanitize=undefined


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]