D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20538 - malformed enum definition compiles
Summary: malformed enum definition compiles
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 minor
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2020-01-27 17:41 UTC by asumface
Modified: 2020-02-13 03:33 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description asumface 2020-01-27 17:41:31 UTC
enum
{
    = 1
}

compiles since 2.082.1, according to run.dlang.io. UDAs for enum members were introduced in this release.

enum
{
    = 1,
    2
}

raises: 
Error: `2` is not a valid attribute for enum members
Comment 1 Dlang Bot 2020-02-12 14:45:50 UTC
@alexandrumc created dlang/dmd pull request #10783 "Fix Issue 20538 - malformed enum definition compiles" fixing this issue:

- Fix Issue 20538 - malformed enum definition compiles

https://github.com/dlang/dmd/pull/10783
Comment 2 Dlang Bot 2020-02-13 03:33:16 UTC
dlang/dmd pull request #10783 "Fix Issue 20538 - malformed enum definition compiles" was merged into master:

- 9f3a638f8b27259d7f87c8efbab4a83d00506370 by Alexandru Militaru:
  Fix Issue 20538 - malformed enum definition compiles

https://github.com/dlang/dmd/pull/10783