]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Avoid crash on illegal constrained type declarations
authorPiotr Trojanek <trojanek@adacore.com>
Sun, 21 Jan 2024 22:29:52 +0000 (23:29 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 13 May 2024 08:03:28 +0000 (10:03 +0200)
commit8e76c189f10ee3b766cfde6b1ccb59b49342b0e5
treedf5dbaf782aed4893f6871cbb0240647dbacec5d
parent2fc8ea4af4ad63a9675aef812f746fa91ecfabc8
ada: Avoid crash on illegal constrained type declarations

Fix crash on ACATS test B38003B introduced by a recent cleanup of
per-object constraints.

gcc/ada/

* sem_util.adb (Get_Index_Bounds): Guard against missing Entity,
which happens on illegal constrained type declaration.
gcc/ada/sem_util.adb