[Issue 11656] New: property offsetof does not work with __vector fields

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 1 01:16:18 PST 2013


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: nobody at puremagic.com
        ReportedBy: r.sagitario at gmx.de


--- Comment #0 from Rainer Schuetze <r.sagitario at gmx.de> 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: -------


More information about the Digitalmars-d-bugs mailing list