[Issue 7038] New: Type mismatch with const struct

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 30 09:34:23 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=7038

           Summary: Type mismatch with const struct
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: zan77137 at nifty.com


--- Comment #0 from SHOO <zan77137 at nifty.com> 2011-11-30 09:33:19 PST ---
This code should be compiled:
------------------
A a;
const struct A { }
A b;

static assert(is(typeof(a) == typeof(b))); // Error: static assert  (is(A ==
const(A))) 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