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).
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:
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: