[Ada] Fix range check on constrained array with expanded index name
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 22 Jun 2020 11:48:43 +0000 (13:48 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 15 Oct 2020 09:39:08 +0000 (05:39 -0400)
commit38e5d9c57fdbb101014e6e55843e2714c3d2cd49
treeffeaec78548d72ecd097c979d3dcd3a9582118dc
parent8ad6af8fc9f0b5df3a6a5f08a95651014fc946df
[Ada] Fix range check on constrained array with expanded index name

gcc/ada/

* sem_ch3.adb (Analyze_Subtype_Declaration): Recognize both
identifiers and expanded names; use high-level Is_Scalar_Type
instead of low-level membership test.
gcc/ada/sem_ch3.adb