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


    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.

It's indeed true for C, but the tree is meant to be more general and
there are lots of things permitted in the tree (such as nonzero lower
bounds for arrays) that are not in C.  For languages that allow the user
to place fields explicitly (such as Ada), there is no requirement that the
fields be sorted in order by location: they stay in the lexical order
of the declarations.


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