[Issue 6939] New: shared pointers are type combined incorrectly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 12 10:55:12 PST 2011


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

           Summary: shared pointers are type combined incorrectly
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: timon.gehr at gmx.ch


--- Comment #0 from timon.gehr at gmx.ch 2011-11-12 10:54:30 PST ---
Tested with DMD 2.056

shared    int* x;
immutable int* y;
const     int* z;

static assert(is(typeof(1?x:y)  == shared(const(int))*)); // fail.
static assert(!is(typeof(1?x:y) == const(int)*));         // fail.

static assert(is(typeof(1?x:z)  == shared(const(int))*)); // fail.
static assert(!is(typeof(1?x:z) == const(int)*));         // fail.


All static assertions should pass.

-- 
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