[Ada] Crash on constrained container in generalized indexing operation
commitc85dda723615051018ea8e19e5f0431e5ffdae55
authorEd Schonberg <schonberg@adacore.com>
Mon, 16 Dec 2019 10:34:42 +0000 (16 10:34 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 16 Dec 2019 10:34:42 +0000 (16 10:34 +0000)
treee797aec794fb34d6d31c60229916673083cea969
parent3c08de34076ffc085e335cc9c89661945823c594
[Ada] Crash on constrained container in generalized indexing operation

2019-12-16  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* sem_ch4.adb (Try_Container_Indexing): In the case of a derived
container type, use the base type to look for candidate indexing
operations, because the object may be a constrained subtype or
itype with no explicit declaration.  Candidate indexing
operations are found in the same scope and list of declarations
as the declaration of the base type.

From-SVN: r279432
gcc/ada/ChangeLog
gcc/ada/sem_ch4.adb