How to correctly read 6.2.5p26?

From: Mark Piffer (sorryonly4spam_at_yahoo.com)
Date: 03/11/05


Date: 11 Mar 2005 01:57:15 -0800

6.2.5p26:
"[...] All pointers to structure types shall have the same
representation and alignment requirements as each other. All pointers
to union types shall have the same representation and alignment
requirements as each other. Pointers to other types need not have the
same representation or alignment requirements."

Does the "each other" mean "each other of the same particular type" or
does it refer to all structure types in general? I was of the opinion
that different structure types do not bear the same alignment
requirements, but as non-native english reader I can't really identify
the subtle traces of definitve information in the standard sometimes.

Mark



Relevant Pages

  • Re: About casts (and pointers)
    ... >> differing lengths have the same representation. ... p26, pointers to compatible types ... shall have the same representation and alignment requirements. ... requirements as 'int ', ...
    (comp.lang.c)
  • Re: two dimensional arrays:
    ... | 27 A pointer to void shall have the same representation and alignment ... Similarly, pointers ... | the same representation and alignment requirements as each other. ...
    (comp.lang.c)
  • Re: struct and union alignment
    ... > All pointers to structure types shall have the same representation and ... All pointers to union types shall ... > have the same representation and alignment requirements as each other. ...
    (comp.lang.c)
  • Re: typedef struct
    ... to declare an incomplete struct type: ... alignment requirements, so you don't need to tell the compiler the exact ... type, so long as all you're doing is receiving pointers to the type, and ... what do the same representation and alignment requirements mean? ...
    (comp.lang.c)
  • Re: typedef struct
    ... to declare an incomplete struct type: ... alignment requirements, so you don't need to tell the compiler the exact ... type, so long as all you're doing is receiving pointers to the type, and ... what do the same representation and alignment requirements mean? ...
    (comp.lang.c)