This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Update documentation for record types


Richard Kenner wrote:-

>   @item RECORD_TYPE
>   Used to represent @code{struct} and @code{class} types, as well as
> ! pointers to member functions and similar constructs in other languages.
> ! @code{TYPE_FIELDS} contains the items contained in this type, each of
> ! which can be a @code{FIELD_DECL}, @code{VAR_DECL}, @code{CONST_DECL}, or
> ! @code{TYPE_DECL}.  You may not make any assumptions about the ordering
> ! of the fields in the type or whether one or more of them overlap.

Is this really correct?  It seems to me that a basic assumption of the
C front end is that they are laid out in order, and do not overlap.

Neil.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]