[Ada] Fix failed assertion on a slice indexed by a subtype_indication
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 16 Apr 2020 11:59:53 +0000 (13:59 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 18 Jun 2020 09:08:22 +0000 (05:08 -0400)
commita9fb2055f3a7a05e493bbb614aca5ed3a19b80d2
tree641287ae9c3aeb36807ed923b6b158f3e6344364
parentc94bbfbe57de7eccec1f3b2fe0da594014ac6088
[Ada] Fix failed assertion on a slice indexed by a subtype_indication

2020-06-18  Piotr Trojanek  <trojanek@adacore.com>

gcc/ada/

* checks.adb (Generate_Index_Checks): Handle
N_Subtype_Indication returned from Scalar_Range.
gcc/ada/checks.adb