D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 23122 - enum member UDAs semantics are not checked properly
Summary: enum member UDAs semantics are not checked properly
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: No Owner
URL:
Keywords: accepts-invalid, pull
Depends on:
Blocks:
 
Reported: 2022-05-17 22:07 UTC by basile-z
Modified: 2022-12-21 00:46 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description basile-z 2022-05-17 22:07:14 UTC
The following code compiles without error, but the `ERROR` symbol is not existing

```
enum E
{
    @ERROR e,
}
```
Comment 1 Andrej Mitrovic 2022-08-31 15:43:55 UTC
Just ran into this. It would be nice if at least it worked.
Comment 2 Dlang Bot 2022-12-20 22:34:10 UTC
@SixthDot created dlang/dmd pull request #14728 "fix issue 23122 - enum member UDAs semantics are not checked properly" fixing this issue:

- fix issue 23122 - enum member UDAs semantics are not checked properly

https://github.com/dlang/dmd/pull/14728
Comment 3 Dlang Bot 2022-12-21 00:46:21 UTC
dlang/dmd pull request #14728 "fix issue 23122 - enum member UDAs semantics are not checked properly" was merged into master:

- 20942efc0dcf2feeda0772516dd573c2fa6db8c1 by Basile Burg:
  fix issue 23122 - enum member UDAs semantics are not checked properly

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