]> 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)
committerEric Botcazou <ebotcazou@adacore.com>
Wed, 27 Sep 2023 08:16:29 +0000 (10:16 +0200)
commit82bf3afa68a4ba433a86d72e5386dec73938891a
treed79f7343a1be3aa1a085fbb3111a60bd07686e0c
parente68906c444e6488960908c89c26ebdba67b6f2cb
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