]> gcc.gnu.org Git - gcc.git/commit
[Ada] Implement calls to abstract subprograms in class-wide pre/post-conditions
authorJavier Miranda <miranda@adacore.com>
Tue, 15 Mar 2022 20:20:24 +0000 (13:20 -0700)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 17 May 2022 08:25:41 +0000 (08:25 +0000)
commita08f366ae875ae70fba5014c94956cdbf7bf91db
treef9d2e24856f8ccc038738adf470396b9d0c30267
parent8fc021c0988113e1fcc5ec026f2382b074894e95
[Ada] Implement calls to abstract subprograms in class-wide pre/post-conditions

In some special cases involving class-wide pre/post conditions, Ada
allows a non-dispatching call to an abstract function (which is usually
illegal).  Fix a bug in the implementation of Ada's rules about the
run-time behavior of such a call. Thanks to Javier Miranda for producing
this patch.

gcc/ada/

* contracts.adb (Build_Call_Helper_Body): Improve handling of
the case of a (legal) non-dispatching call to an abstract
subprogram.
gcc/ada/contracts.adb
This page took 0.061352 seconds and 5 git commands to generate.