[Bug middle-end/101586] ICE:in clear_padding_type, at gimple-fold.c:4783 with call to __builtin_clear_padding for C++
qinzhao at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 23 15:04:18 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101586
--- Comment #5 from qinzhao at gcc dot gnu.org ---
(In reply to Jakub Jelinek from comment #2)
> Reduced testcase:
> struct A { char a; };
> struct B : virtual A {};
> struct C : B {};
>
> void
> foo ()
> {
> C c;
> __builtin_clear_padding (&c);
> }
is the bug related to virtual table in the object? what's the root cause of the
failure? thanks.
More information about the Gcc-bugs
mailing list