ada: Fix late extra formals creation
commitf4e907d5ee52fffe7c6fb1256e65eb39c9313379
authorRonan Desplanques <desplanques@adacore.com>
Tue, 14 Mar 2023 09:01:06 +0000 (14 10:01 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 26 May 2023 07:29:15 +0000 (26 09:29 +0200)
tree7fc8f1734cf7d1dd41db574120246d034cb9dce5
parent0251292d2da4039d4b12ecee81588614bf99b546
ada: Fix late extra formals creation

Before this patch, in some situations, a subprogram call could be
expanded before the extra formals for the subprogram were created.

This patch fixes the problem in those situations.

gcc/ada/

* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Create extra formals
in more situations.
gcc/ada/sem_ch6.adb