[Ada] Ada 2020 AI12-0401: Renaming of qualified expression of variable

2021-04-29 Thread Pierre-Marie de Rodat
A new version of this AI was published recently, refining the legality rules around renaming of a qualified expression. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * sem_ch8.adb (Analyze_Object_Renaming): Update check for AI12-0401.diff --git a/gcc/ada/sem_ch8.adb

[Ada] Ada 2020 AI12-0401 Renaming of qualified expression of variable

2020-11-26 Thread Pierre-Marie de Rodat
This AI restricts renaming of a qualified expression to cases where the operand is a constant, or the target subtype statically matches the nominal subtype of the operand, or is unconstrained with no predicates. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * sem_ch8.adb (An