Bug 24041 – Anon enum member ignores repeated type or identifier

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2023-07-08T16:34:44Z
Last change time
2023-07-13T10:31:58Z
Keywords
accepts-invalid, diagnostic, pull
Assigned to
No Owner
Creator
Nick Treleaven

Comments

Comment #0 by nick — 2023-07-08T16:34:44Z
Each of these lines should error: enum { int x y, int bool i = 3, j int k = 3 } PR incoming.
Comment #1 by dlang-bot — 2023-07-08T16:52:47Z
@ntrel created dlang/dmd pull request #15392 "Fix several errors parsing enum members" fixing this issue: - Fix Issue 24041 - Anon enum member ignores repeated type or identifier Also adds test for missing initializer when type is specified and tweaks that error. https://github.com/dlang/dmd/pull/15392
Comment #2 by dlang-bot — 2023-07-10T12:12:49Z
@ntrel created dlang/dmd pull request #15397 "[dmd/parse] Refactor enum declaration" fixing this issue: - Fix Issue 24041 - Anon enum member ignores repeated type or identifier Also adds test for missing initializer when type is specified and tweaks that error. https://github.com/dlang/dmd/pull/15397
Comment #3 by dlang-bot — 2023-07-13T10:31:58Z
dlang/dmd pull request #15392 "Fix several errors parsing enum members" was merged into master: - 9be3f393fdbf2f6ed25aefeb24f66349763e4fbd by Nick Treleaven: Fix Issue 24041 - Anon enum member ignores repeated type or identifier Also adds test for missing initializer when type is specified and tweaks that error. https://github.com/dlang/dmd/pull/15392