[Ada] Accept effectively volatile components in actuals
authorPiotr Trojanek <trojanek@adacore.com>
Wed, 16 Feb 2022 11:13:57 +0000 (12:13 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 13 May 2022 08:04:26 +0000 (08:04 +0000)
commit74ce1d5a6cbcf81e21b4c0eeee372df46c275df0
tree23febb1e46b1395198a0f3330d1790945867852c
parent7427e673d818be052fd07468c9dfdad3dbfe13b3
[Ada] Accept effectively volatile components in actuals

In SPARK we forbid names that are effectively volatile for reading if
they occur in actual subprogram parameters. We wrongly rejected
references to components, which are not names in Ada.

gcc/ada/

* sem_res.adb (Flag_Effectively_Volatile_Objects): Ignore
component and discriminant identifiers.
gcc/ada/sem_res.adb