http://d.puremagic.com/issues/show_bug.cgi?id=5107
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 AssignedTo: nob...@puremagic.com ReportedBy: rsi...@gmail.com --- Comment #0 from Shin Fujishiro <rsi...@gmail.com> 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------