Bug 11656 – property offsetof does not work with __vector fields

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-12-01T01:16:00Z
Last change time
2013-12-01T12:44:56Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
r.sagitario

Comments

Comment #0 by r.sagitario — 2013-12-01T01:16:16Z
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)
Comment #1 by r.sagitario — 2013-12-01T02:39:48Z
Comment #2 by github-bugzilla — 2013-12-01T12:44:44Z
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