Bug 20185 – IsExpression with identifier does not handle combined qualifiers correctly

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-08-31T18:57:22Z
Last change time
2019-08-31T19:55:06Z
Assigned to
No Owner
Creator
Harry Vennik

Comments

Comment #0 by htvennik — 2019-08-31T18:57:22Z
---- static assert(is(const int == const)); // OK static assert(is(shared const int == const)); // OK static assert(is(const int U == const U)); // OK static assert(is(shared const int U == const U)); // FAILS ---- The IsExpression in the latter should return `true`, and `U` should be defined as an alias to `shared int`. This bug affects core.internal.traits.Unconst
Comment #1 by ag0aep6g — 2019-08-31T19:55:06Z
Already fixed in master. *** This issue has been marked as a duplicate of issue 20138 ***