[Ada] Fix failing assertions on SPARK elaboration
authorYannick Moy <moy@adacore.com>
Wed, 14 Aug 2019 09:50:55 +0000 (09:50 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Wed, 14 Aug 2019 09:50:55 +0000 (09:50 +0000)
commitbab15911661814606d18639ef53597ea9a843afa
treec532ee06556080523abebe3b9b90a0a642e942e3
parent4a6db9fd05bff1cd7a487eb87a4a0413c3c2301a
[Ada] Fix failing assertions on SPARK elaboration

Checking of SPARK elaboration rules may lead to assertion failures on a
compiler built with assertions. Now fixed.

There is no impact on compilation.

2019-08-14  Yannick Moy  <moy@adacore.com>

gcc/ada/

* sem_disp.adb (Check_Dispatching_Operation): Update assertion
for the separate declarations created in GNATprove mode.
* sem_disp.ads (Is_Overriding_Subprogram): Update comment.
* sem_elab.adb (SPARK_Processor): Fix test for checking of
overriding primitives.

From-SVN: r274448
gcc/ada/ChangeLog
gcc/ada/sem_disp.adb
gcc/ada/sem_disp.ads
gcc/ada/sem_elab.adb