← Back to index
|
Original Bugzilla link
Bug 6870 – type qualifiers behave inconsistently in combination with typeof
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2011-11-01T03:45:00Z
Last change time
2011-11-14T16:06:56Z
Keywords
patch, rejects-valid
Assigned to
nobody
Creator
timon.gehr
Comments
Comment #0
by timon.gehr — 2011-11-01T03:45:28Z
tested with DMD 2.056 void main(){ shared(int) x; static assert(is(typeof(x) == shared(int))); // pass const(typeof(x)) y; const(shared(int)) z; static assert(is(typeof(y) == typeof(z))); // fail! } The static assertion should pass.
Comment #1
by k.hara.pg — 2011-11-08T03:26:06Z
https://github.com/D-Programming-Language/dmd/pull/502
Comment #2
by bugzilla — 2011-11-14T16:06:56Z
https://github.com/D-Programming-Language/dmd/commit/4af3787406efe9b71dc73df43e5a7e64c7bb3f22