iter3.adb
328 Bytes
-
[Ada] Spurious warning on iteration over range of 64-bit modular type · c4a2e585
This patch suppresses a spurious warning on the use of a 64-bit modular type in a quantified expression, where the range of iteration will include a bound that appears larger than the run-time representation of Universal_Integer'last. 2018-07-31 Ed Schonberg <schonberg@adacore.com> gcc/ada/ * sem_eval.adb (Check_Non_Static_Context): Do not warn on an integer literal greater than the upper bound of Universal_Integer'Last when expansion is disabled, to avoid a spurious warning over ranges involving 64-bit modular types. gcc/testsuite/ * gnat.dg/iter3.adb: New testcase. From-SVN: r263095
Ed Schonberg committed