Summary: Const-shared classes/structs not typed as shared
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: patch, rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Shin Fujishiro <> 2010-10-23 13:54:43 PDT 
Created an attachment (id=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

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to