[Ada] Crash in generic renaming declaration of child unit
authorJavier Miranda <miranda@adacore.com>
Tue, 30 Jun 2020 18:20:09 +0000 (14:20 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 16 Oct 2020 07:34:52 +0000 (03:34 -0400)
commit2357b2948db15d5e3529d2368e11b4f6caa2dca0
treed09f6f8a6e7379142f18de3ec61d1c1405e15a9d
parent8dfdfd4048e7a67f2ba01e9efc5d83554d6546ba
[Ada] Crash in generic renaming declaration of child unit

gcc/ada/

* sem_ch12.adb (Check_Generic_Child_Unit): When the child unit
is a renaming of a generic child unit then traverse the scope
containing the renaming declaration to locate the instance of
its parent.  Otherwise the parent is not installed and the
frontend cannot process the instantiation.
gcc/ada/sem_ch12.adb