[Issue 5107] New: Const-shared classes/structs not typed as shared
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 23 13:55:27 PDT 2010
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: nobody at puremagic.com
ReportedBy: rsinfu at gmail.com
--- Comment #0 from Shin Fujishiro <rsinfu at 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: -------
More information about the Digitalmars-d-bugs
mailing list