This is the mail archive of the
mailing list for the GCC project.
Re: ACATS c380004
Duncan Sands wrote:
In the dark old days, the GNAT compiler didn't allocate the maximum possible size for records
with default discriminants. They changed it a some point, for efficiency reasons IIRC.
That's a wrong memory, GNAT has always allocated the maximum size. Any
other implementation is very error prone and extremely complex, and
also requires implicit heap allocation which we avoid in GNAT. Really
allocating the maximum is the only feasible implementation, and it is
the only one used by current ADa 95 implementations as far as I know.