[Bug sanitizer/98206] UBSan: Casting from multiple inheritance base to derived class triggers undefined behavior sanitizer

2021-01-01 Thread rbock at eudoxos dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98206 --- Comment #6 from Roland B --- Great! This also works well in the original (more complex) scenario (https://github.com/rbock/sqlpp11/issues/355).

[Bug c++/98206] UBSan: Casting from multiple inheritance base to derived class triggers undefined behavior sanitizer

2020-12-08 Thread rbock at eudoxos dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98206 --- Comment #1 from Roland B --- Here is the actual error message: // - example.cpp:16:49: runtime error: reference binding to misaligned address 0x7ffdc34cab61 for type 'const struct X', which requires 8 byte alignment 0x7ffdc34cab61:

[Bug c++/98206] New: UBSan: Casting from multiple inheritance base to derived class triggers undefined behavior sanitizer

2020-12-08 Thread rbock at eudoxos dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98206 Bug ID: 98206 Summary: UBSan: Casting from multiple inheritance base to derived class triggers undefined behavior sanitizer Product: gcc Version: 11.0 Status: