Bug 21311 – Enum super type comparison treated as different types.

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-10-15T02:18:41Z
Last change time
2024-12-13T19:12:08Z
Assigned to
No Owner
Creator
Jonathan Levi
Moved to GitHub: dmd#19804 →

Comments

Comment #0 by jonathanilevi — 2020-10-15T02:18:41Z
Pre 2.074.1 this would compile, 2.075.1 it was marked as deprecated: ``` enum E {x} enum A {x} E.x == A.x; ``` This is good, these are not the same types... But this fails?? ``` enum E {x} enum A : E {x} E.x == A.x; ``` This succeeds ```E.x == 0;``` as does this ```(E e){}(A.x);``` as they should.
Comment #1 by robert.schadek — 2024-12-13T19:12:08Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19804 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB