aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_ch3.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@adacore.com>2022-03-30 19:00:27 +0000
committerPierre-Marie de Rodat <derodat@adacore.com>2022-05-18 08:40:59 +0000
commit54cf6609e0c52123db5c600db197647491c33395 (patch)
tree4074356bd2ff7e42c99380bf786ed3eff47650b6 /gcc/ada/sem_ch3.adb
parent5488c78c836ca71330bc69247bf75aa14d9d2603 (diff)
downloadgcc-54cf6609e0c52123db5c600db197647491c33395.zip
gcc-54cf6609e0c52123db5c600db197647491c33395.tar.gz
gcc-54cf6609e0c52123db5c600db197647491c33395.tar.bz2
[Ada] Freezing too strict in instances
Should_Freeze_Type is relaxed to only take the relevant case into account (entities denoted by generic actual parameters as per 13.14(5/3), as well as profile of any subprograms named as per 13.14(10.2/4)), instead of being overly conservative wrt instances and as a result, wrongly rejecting some legal code. In practice this means we only need to worry about profile of subprograms named as part of instances. gcc/ada/ * freeze.adb (Should_Freeze_Type): Fix handling of freezing in instances.
Diffstat (limited to 'gcc/ada/sem_ch3.adb')
0 files changed, 0 insertions, 0 deletions