July 08, 2023
https://issues.dlang.org/show_bug.cgi?id=24041

          Issue ID: 24041
           Summary: Anon enum member ignores repeated type or identifier
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: nick@geany.org

Each of these lines should error:

 enum
 {
    int x y,
    int bool i = 3,
    j int k = 3
 }

PR incoming.

--