[Bug c++/108417] [ICE] Crash on aggregate initialization of base class
m.cencora at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Jan 17 12:57:07 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108417
--- Comment #7 from m.cencora at gmail dot com ---
Hmm, ok.
So if I wanted to workaround this in generic code, what kind of types should I
exclude from aggregate initialization? Any type that has a base class with a
tail padding? Or just the last direct base cannot have tail padding?
Also ICE-ing is not very user friendly, maybe we could use move/copy-ctor
anyway for such a non-trivial base (similarly to what clang does) or at least
error-out with a nice message.
More information about the Gcc-bugs
mailing list