[Ada] Errors in handling of access_to_subprogram contracts
authorEd Schonberg <schonberg@adacore.com>
Thu, 14 May 2020 15:06:54 +0000 (11:06 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 7 Jul 2020 09:26:58 +0000 (05:26 -0400)
commit9b501e59d1d5c2aa28574fd188db04f7e762f4cd
tree001980892153124cfb096cc261f35a5adfa91f17
parent7bf53b1a612b1fe08d80d823981879486531ea11
[Ada] Errors in handling of access_to_subprogram contracts

gcc/ada/

* exp_ch3.adb (Build_Access_Subprogram_Wrapper_Body): Create
proper subprogram specification for body, using names in the
subprogram declaration but distinct entities.
* exp_ch6.adb (Expand_Call): If this is an indirect call
involving a subprogram wrapper, insert pointer parameter in list
of actuals with a parameter association, not as a positional
parameter.
gcc/ada/exp_ch3.adb
gcc/ada/exp_ch6.adb