[Ada] Fix internal error on component of class-wide parameter in instance body
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 30 Apr 2020 22:27:12 +0000 (00:27 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 19 Jun 2020 08:17:23 +0000 (04:17 -0400)
commit92392296c19de59d12558eedb9a5966a138454a7
tree3129cef24e91809d8e6ba8899e7860099fb3ba1b
parentc5c69d05a905069496f81a3e2fe78ec85aa8dd36
[Ada] Fix internal error on component of class-wide parameter in instance body

2020-06-19  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* sem_ch4.adb (Analyze_Selected_Component): In an instance body,
also invoke Find_Component_In_Instance on the parent subtype of
a derived tagged type immediately visible.  Remove obsolete case.
gcc/ada/sem_ch4.adb