https://d.puremagic.com/issues/show_bug.cgi?id=11656

           Summary: property offsetof does not work with __vector fields
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Rainer Schuetze <[email protected]> 2013-12-01 01:16:16 
PST ---
compile with "dmd -m64 test.d":

struct Foo
{
    __vector(float[4]) x;
}

pragma(msg,Foo.x.offsetof); // line 7

output:
test.d(7): Error: no property 'offsetof' for type '__vector(float[4])'
test.d(7): Error: need 'this' for 'x' of type '__vector(float[4])'
test.d(7):        while evaluating pragma(msg, x.offsetof)

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

Reply via email to