Bug 23122 – enum member UDAs semantics are not checked properly
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-05-17T22:07:14Z
Last change time
2022-12-21T00:46:21Z
Keywords
accepts-invalid, pull
Assigned to
No Owner
Creator
Basile-z
Comments
Comment #0 by b2.temp — 2022-05-17T22:07:14Z
The following code compiles without error, but the `ERROR` symbol is not existing
```
enum E
{
@ERROR e,
}
```
Comment #1 by andrej.mitrovich — 2022-08-31T15:43:55Z
Just ran into this. It would be nice if at least it worked.
Comment #2 by dlang-bot — 2022-12-20T22:34:10Z
@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 by dlang-bot — 2022-12-21T00:46:21Z
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