Thread overview
[Issue 21004] dmd segmentation fault with 'void' struct member array initializer
Jul 02, 2020
RazvanN
Jul 02, 2020
Basile-z
Dec 17, 2022
Iain Buclaw
Jan 08, 2023
Basile-z
Jan 08, 2023
Basile-z
July 02, 2020
https://issues.dlang.org/show_bug.cgi?id=21004

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com
           Severity|normal                      |major

--
July 02, 2020
https://issues.dlang.org/show_bug.cgi?id=21004

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=21004

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P2

--
January 08, 2023
https://issues.dlang.org/show_bug.cgi?id=21004

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |backend
                 CC|                            |b2.temp@gmx.com

--- Comment #1 from Basile-z <b2.temp@gmx.com> ---
that's a stack overflow in

outelem(elem*, bool&) (e=0x7216de0, addressOfParam=@0x7fffffffc8a0: false)
    at src/dmd/backend/out.d:812

--
January 08, 2023
https://issues.dlang.org/show_bug.cgi?id=21004

--- Comment #2 from Basile-z <b2.temp@gmx.com> ---
one thing is that void init of members is not a thing, I've been told recently
(*).

DMD should process the initializer as a default one instead of processing all the elements.

(*): https://github.com/ldc-developers/ldc/issues/4285#issuecomment-1337471489

--