]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix assertion failure introduced by latest change
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 5 Jul 2023 17:49:40 +0000 (19:49 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 18 Jul 2023 13:11:47 +0000 (15:11 +0200)
commit6c431c90947cb5a18d2b8807d5a94c644bd7021c
treebd7c07946eb4d33c76fa7a53499a40799c56dec9
parent79cc2a75680ebcf8e9e200ddfbd61bd3ef08798a
ada: Fix assertion failure introduced by latest change

The new processing is not properly guarded.

gcc/ada/

* sem_ch13.adb (Replace_Type_References_Generic.Visible_Component):
In the case of private discriminated types, explicitly check that we
have a private declaration before examining its discriminant part.
gcc/ada/sem_ch13.adb