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)