This is the mail archive of the gcc@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]

Re: Added error message (for too-large array)


    OK.  You're saying that an array with an unrepresentable size is valid in
    Ada, so my assumption that it would be invalid for all languages was
    incorrect.

"Unrepresentable" here means "... in the GCC tree".  In Ada, all
constants are to be interpreted in infinite precision and the size of
types are likewise.  So it's improper to say that some type is too large.

    I suppose I'll move the test into layout_decl, since you seem to agree
    that creating an object of such a type is invalid.

Right.  Even in Ada, an implementation is allowed (indeed expected) to
limit the amount of storage that can be allocated to an object.


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