[Ada] Spurious error in instantiation with aggregate and private ancestor
authorEd Schonberg <schonberg@adacore.com>
Mon, 26 Apr 2021 17:32:06 +0000 (13:32 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 5 Jul 2021 13:09:10 +0000 (13:09 +0000)
commit0b8880428c4da92886b069af714365019f660ade
treed91f97e9a46a31c31916a8c3a04515fe9441f4fa
parent243573ff080ed436d8cd9a3273e509ee436434d9
[Ada] Spurious error in instantiation with aggregate and private ancestor

gcc/ada/

* sem_aggr.adb (Resolve_Record_Aggregate, Step_5): Do not check
for the need to use an extension aggregate for a given component
when within an instance and the type of the component hss a
private ancestor: the instantiation is legal if the generic
compiles, and spurious errors may be generated otherwise.
gcc/ada/sem_aggr.adb