[Issue 7785] New: [CTFE] ICE when slicing pointer to variable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 26 20:01:48 PDT 2012


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

           Summary: [CTFE] ICE when slicing pointer to variable
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: dawg at dawgfoto.de


--- Comment #0 from dawg at dawgfoto.de 2012-03-26 20:02:09 PDT ---
cat > bug.d << CODE
bool foo()
{
    int val;
    auto p = &val;
    auto ary = p[0 .. 1];
    return true;
}

enum res = foo();
CODE

dmd -c bug

--------

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