]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix crash on selected component lookup in generic instance
authorBob Duff <duff@adacore.com>
Wed, 23 Aug 2023 12:14:07 +0000 (08:14 -0400)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 5 Sep 2023 11:05:15 +0000 (13:05 +0200)
commitd54e996a25d34d1cfaa5fd1de5127668bb43755a
tree73f6ae3a3e123849b7d814755e16c7f07cba2411
parent9be6a698f95f94a27307208cdb90bd2018182071
ada: Fix crash on selected component lookup in generic instance

This patch fixes a compiler crash on selected component lookup in an instance
of a generic unit when the relevant type is an itype.

gcc/ada/

* sem_ch4.adb (Find_Component_In_Instance): Check that
Declaration_Node (Par) is not Empty, as it is for itypes.
gcc/ada/sem_ch4.adb