]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Missing check for assigning too-large array to fixed-lower-bound object
authorGary Dismukes <dismukes@adacore.com>
Fri, 19 Mar 2021 23:28:38 +0000 (19:28 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 18 Jun 2021 08:36:51 +0000 (04:36 -0400)
commit33a3b5f3a5034c3b41bd34fdf145da9a20743a28
tree359ad3def0f68e8b63b4aa8001ec9185128c765c
parent9324e07dbd14cf1da1627676b5f4aeb6ba606e4a
[Ada] Missing check for assigning too-large array to fixed-lower-bound object

gcc/ada/

* sem_ch3.adb (Constrain_Index): Set the High_Bound of a
fixed-lower-bound subtype's range to T (the subtype of the FLB
index being constrained) rather than Base_Type (T).
gcc/ada/sem_ch3.adb