Bug 2263 – spec does not specify how padding on 80 bit real is initialized
Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2008-08-01T17:29:00Z
Last change time
2014-03-01T00:35:42Z
Keywords
spec
Assigned to
bugzilla
Creator
tomas
Comments
Comment #0 by tomas — 2008-08-01T17:29:25Z
on linux real takes 12 bytes for 32bit alignment. the spec does not specify if the extra 2 byte padding should be zero initialized or not.
other basic types which might be implemented with a larger allocation than they use for data could also use clarification on this.
Comment #1 by bugzilla — 2008-08-03T04:06:26Z
The spec specifies them in expression.html#EqualExpression: "Equality for struct objects means the bit patterns of the objects match exactly (the existence of alignment holes in the objects is accounted for, usually by setting them all to 0 upon initialization)."