[Bug c++/108417] [ICE] Crash on aggregate initialization of base class
m.cencora at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Jan 16 15:37:02 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108417
--- Comment #4 from m.cencora at gmail dot com ---
(In reply to Andrew Pinski from comment #3)
> I am 99% sure this is the same issue as pr98995 even though this is a crash.
> The ice is the same as PR 93711.
>
> This code has both an abi issue against it filed and a c++ defect report
> filed against it.
I think this is a separate issue.
Here the 'NonTrivial' class is copyable, so even if compiler cannot perform
copy ellision (due to ABI or etc), it should be able to initialize the base
object.
More information about the Gcc-bugs
mailing list