This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Somewhat-related changes to expr.c & tree.c
- To: kenner at vlsi1 dot ultra dot nyu dot edu
- Subject: Re: Somewhat-related changes to expr.c & tree.c
- From: Laurent Guerby <guerby at acm dot org>
- Date: Sun, 19 Nov 2000 22:58:40 +0100
- CC: mark at codesourcery dot com, gcc-patches at gcc dot gnu dot org, guerby at acm dot org
- References: <10011192136.AA03675@vlsi1.ultra.nyu.edu>
- Reply-to: guerby at acm dot org
Note that Ada array length calculation is defined as
if first <= last then
length = last - first + 1
else
length = 0
end if
AFAIK, there's no way to escape the if to treat properly what the Ada
Reference Manual calls "null range" (all the cases where first >
last). And as Richard mentionned the range can cover Min_Int .. Max_Int.
I don't know for other languages though.
--
Laurent Guerby <guerby@acm.org>