← Back to index
|
Original Bugzilla link
Bug 5107 – Const-shared classes/structs not typed as shared
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-10-23T13:54:00Z
Last change time
2010-12-04T20:09:59Z
Keywords
patch, rejects-valid
Assigned to
nobody
Creator
rsinfu
Attachments
ID
Filename
Summary
Content-Type
Size
791
constshared-class.patch
Patch against dmd trunk r727
text/plain
1472
Comments
Comment #0
by rsinfu — 2010-10-23T13:54:43Z
Created attachment 791 Patch against dmd trunk r727 Classes, structs and unions declared with 'const shared' don't get typed as shared. The attached patch fixes the problem. -------------------- const shared class C { } static assert(is(C == const)); // okay static assert(is(C == shared)); // fails! -------------------- % dmd -o- -c test.d test.d(5): Error: static assert (is(const(C) == shared)) is false --------------------
Comment #1
by bugzilla — 2010-12-04T20:09:59Z
http://www.dsource.org/projects/dmd/changeset/776