Bug 24281 – Segfault with missing field after named argument

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2023-12-13T13:16:00Z
Last change time
2023-12-17T04:51:10Z
Keywords
ice-on-invalid-code, pull
Assigned to
No Owner
Creator
Nick Treleaven

Comments

Comment #0 by nick — 2023-12-13T13:16:00Z
struct S { int y, z = 3; } void main() { S s3 = S(z: 2, 3); } Should produce e.g. Error: no field beyond `z`.
Comment #1 by dlang-bot — 2023-12-13T17:40:00Z
@dkorpel created dlang/dmd pull request #15902 "Fix 24281 - Segfault with missing field after named argument" fixing this issue: - Fix 24281 - Segfault with missing field after named argument https://github.com/dlang/dmd/pull/15902
Comment #2 by dlang-bot — 2023-12-13T23:08:46Z
dlang/dmd pull request #15902 "Fix 24281 - Segfault with missing field after named argument" was merged into stable: - 749b9e321aa623df6ce2d95db74158aa920a10e3 by Dennis Korpel: Fix 24281 - Segfault with missing field after named argument https://github.com/dlang/dmd/pull/15902
Comment #3 by dlang-bot — 2023-12-17T04:51:10Z
dlang/dmd pull request #15917 "merge stable" was merged into master: - 4b7597ee667fb4ce0e50913cbeb53c4fed3eee35 by Dennis Korpel: Fix 24281 - Segfault with missing field after named argument https://github.com/dlang/dmd/pull/15917