r274449 - in /trunk/gcc: ada/ChangeLog ada/sem_...
pmderodat@gcc.gnu.org
pmderodat@gcc.gnu.org
Wed Aug 14 09:51:00 GMT 2019
Author: pmderodat
Date: Wed Aug 14 09:51:00 2019
New Revision: 274449
URL: https://gcc.gnu.org/viewcvs?rev=274449&root=gcc&view=rev
Log:
[Ada] Crash on precondition involving quantified expression
This patch fixes a compiler abort on a precondition whose condition
includes a quantified expression.
2019-08-14 Ed Schonberg <schonberg@adacore.com>
gcc/ada/
* sem_util.adb (New_Copy_Tree, Visit_Entity): A quantified
expression includes the implicit declaration of the loop
parameter. When a quantified expression is copied during
expansion, for example when building the precondition code from
the generated pragma, a new loop parameter must be created for
the new tree, to prevent duplicate declarations for the same
symbol.
gcc/testsuite/
* gnat.dg/predicate12.adb, gnat.dg/predicate12.ads: New
testcase.
Added:
trunk/gcc/testsuite/gnat.dg/predicate12.adb
trunk/gcc/testsuite/gnat.dg/predicate12.ads
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/sem_util.adb
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list