Added error message (for too-large array)

Jason Merrill jason_merrill@redhat.com
Tue Sep 25 06:39:00 GMT 2001


>>>>> "dewar" == dewar  <dewar@gnat.com> writes:

> Actually the idea behavior in Ada would be to generate a Storage_Error
> exception at run time if a variable of the type is declared, and to warn
> at compile time that this storage error would be generated. After all
> the declaration may appear in a conditional piece of code that is never
> executed.

Interesting; what is the rationale for waiting until runtime to complain
about things which can reasonably and consistently be diagnosed at compile
time?

OK, I'll put the error in the C++ frontend then...

Jason



More information about the Gcc mailing list