[Issue 7175] New: Zero-length static array .ptr is always null

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 28 03:27:08 PST 2011


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

           Summary: Zero-length static array .ptr is always null
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: thecybershadow at gmail.com


--- Comment #0 from Vladimir Panteleev <thecybershadow at gmail.com> 2011-12-28 03:26:59 PST ---
void main()
{
    struct S
    {
        ubyte[0] arr;
    }

    S s;
    assert(s.arr.ptr !is null);
}

s.arr.ptr should be the same as &s.

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