[Ada] Fix position of subprogram body generated for static predicate
authorEd Schonberg <schonberg@adacore.com>
Fri, 5 Jul 2019 07:03:20 +0000 (07:03 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Fri, 5 Jul 2019 07:03:20 +0000 (07:03 +0000)
commitc365eb26e87eab31f55b760fe4220b68fb952b72
tree98a60ccbff6e973252d405c7435ac3c2f93304ac
parent9880061b346330e7c986016bdec75f38659f8793
[Ada] Fix position of subprogram body generated for static predicate

2019-07-05  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* sem_ch13.adb (Build_Predicate_Functions): If a subtype that
carries a static predicate aspect is frozen immediately after
its declaration, ensure that the generated function body created
for predicate checking is inserted after the corresponding
subprogram declaration, which is created at the point the
declaration is elaborated.

From-SVN: r273122
gcc/ada/ChangeLog
gcc/ada/sem_ch13.adb