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
Comment #2 by bugzilla — 2011-11-14T16:06:56Z