www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2263] New: spec does not specify how padding on 80 bit real is initialized

reply d-bugmail puremagic.com writes:

           Summary: spec does not specify how padding on 80 bit real is
           Product: D
           Version: 1.033
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: tomas famolsen.dk

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.

Aug 01 2008
parent d-bugmail puremagic.com writes:

bugzilla digitalmars.com changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

------- Comment #1 from bugzilla digitalmars.com  2008-08-03 04:06 -------
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)."

Aug 03 2008