r263095 - in /trunk/gcc: ada/ChangeLog ada/sem_...

pmderodat@gcc.gnu.org pmderodat@gcc.gnu.org
Tue Jul 31 09:55:00 GMT 2018


Author: pmderodat
Date: Tue Jul 31 09:55:48 2018
New Revision: 263095

URL: https://gcc.gnu.org/viewcvs?rev=263095&root=gcc&view=rev
Log:
[Ada] Spurious warning on iteration over range of 64-bit modular type

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.

Added:
    trunk/gcc/testsuite/gnat.dg/iter3.adb
Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/sem_eval.adb
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list