sem_ch4.adb (Is_Empty_Range): Use bounds of index type to determine whether an array...
authorEd Schonberg <schonberg@adacore.com>
Tue, 2 Oct 2012 08:10:54 +0000 (08:10 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 2 Oct 2012 08:10:54 +0000 (10:10 +0200)
commit4856cc2a7d10a3da76084704a51a37aae0e59cef
tree2377288705d822fe4345d9a763c34e97adda307d
parent538dbb562fc7b3d8792477176eba628498f2ef18
sem_ch4.adb (Is_Empty_Range): Use bounds of index type to determine whether an array is empty when...

2012-10-02  Ed Schonberg  <schonberg@adacore.com>

* sem_ch4.adb (Is_Empty_Range): Use bounds of index type
to determine whether an array is empty when optimizing
a quantified expression over a null range. Use of RM_Size
was incorrect. Analyze condition before constant-folding the
expression to catch potential errors. Modify the error message
to avoid mathematical terminology.

From-SVN: r191958
gcc/ada/ChangeLog
gcc/ada/sem_ch4.adb