This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Added error message (for too-large array)
- To: dewar at gnat dot com, jason_merrill at redhat dot com
- Subject: Re: Added error message (for too-large array)
- From: dewar at gnat dot com
- Date: Tue, 25 Sep 2001 10:05:26 -0400 (EDT)
- Cc: gcc at gcc dot gnu dot org, kenner at vlsi1 dot ultra dot nyu dot edu, law at cygnus dot com
<<Interesting; what is the rationale for waiting until runtime to complain
about things which can reasonably and consistently be diagnosed at compile
time?
>>
The set of things that make an Ada program illegal is very well defined
by the standard. There is nothing illegal by Ada standards about these
declarations. The only limitation is that there is not enough storage to
actually allocate a gigantic array, hence the storage error if you actually
try. Of course warnings are always allowed.