https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116108

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The ICE is because of running out of stack, reshape_init for S sees a const S
member and tries to reshape_init for const S, which tries to reshape_init for
const S etc. until it runs out of stack.
If it is just struct S { S s; }; already
r10-6457-gfa0c6e297b22d5883857d0db4a6a8be0967cb16f aka PR92593 fix started to
reject it instead of ICE, but with struct S { const S; }; or struct S { const S
= 1; }; it keeps ICEing until latest trunk.

Reply via email to