]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Implement fixed-lower-bound consistency checks for qualified_expressions
authorGary Dismukes <dismukes@adacore.com>
Tue, 6 Apr 2021 23:07:39 +0000 (19:07 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 21 Jun 2021 10:45:21 +0000 (06:45 -0400)
commit62a3799f34939740c744328849910204e5cf48d5
tree4fb0af1969d1ca9a7ce819f2600c142734371da2
parenta61fd32dd1f8a4f8a65564f7d2f3b7fbc73167c4
[Ada] Implement fixed-lower-bound consistency checks for qualified_expressions

gcc/ada/

* checks.adb (Selected_Range_Checks): In the case of a
qualified_expression where the qualifying subtype is an
unconstrained array subtype with fixed lower bounds for some of
its indexes, generate tests to check that those bounds are equal
to the corresponding lower bounds of the qualified array object.
gcc/ada/checks.adb