www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5107] New: Const-shared classes/structs not typed as shared

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: rsinfu gmail.com


--- Comment #0 from Shin Fujishiro <rsinfu 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: -------
Oct 23 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5107


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


--- Comment #1 from Walter Bright <bugzilla digitalmars.com> 2010-12-04
20:09:59 PST ---
http://www.dsource.org/projects/dmd/changeset/776

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 04 2010