www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11656] New: property offsetof does not work with __vector fields

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: r.sagitario gmx.de


--- Comment #0 from Rainer Schuetze <r.sagitario 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: -------
Dec 01 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11656


Rainer Schuetze <r.sagitario gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Rainer Schuetze <r.sagitario gmx.de> 2013-12-01 02:39:48
PST ---
https://github.com/D-Programming-Language/dmd/pull/2906

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 01 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11656



--- Comment #2 from github-bugzilla puremagic.com 2013-12-01 12:44:44 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/b3825199d37e772494b322734e223f9443fd1bd4
Merge pull request #2906 from rainers/issue11656

fix issue 11656: property offsetof does not work with __vector fields

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 01 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11656


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


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