]> gcc.gnu.org Git - gcc.git/commit
[Ada] Errors missed on ACATS test B650007
authorArnaud Charlet <charlet@adacore.com>
Sat, 2 Apr 2022 17:29:09 +0000 (17:29 +0000)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 18 May 2022 08:41:04 +0000 (08:41 +0000)
commit5b0e8d6937f7857e3dc7486a989e0c72d478c1ed
tree5d2e8c571c07343ed095719f6f006f1df30177ed
parent9af8c27f090ae549f43e40cff00a9d702db0ac85
[Ada] Errors missed on ACATS test B650007

This ACATS test shows that we need to call Is_Immutably_Limited_Type
in Analyze_Function_Return and also that we have a latent bug in
Is_Immutably_Limited_Type which shouldn't look through private types.

gcc/ada/

* sem_aux.adb (Is_Immutably_Limited_Type): Do not look through
private types as per RM 7.5(8.1).
* sem_ch6.adb (Analyze_Function_Return): Use
Is_Immutably_Limited_Type as per RM 6.5(5.10).
gcc/ada/sem_aux.adb
gcc/ada/sem_ch6.adb
This page took 0.062325 seconds and 5 git commands to generate.