]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix freezing of Default_Value expressions
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 24 Jun 2024 11:07:13 +0000 (13:07 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 1 Aug 2024 15:14:36 +0000 (17:14 +0200)
commitf46aaaecd99e80245bfaa90e08ff28a4d02d631b
treeef7ff47bfbe6f0ac39809fcc2604bec31999cf0e
parented5481b5c9368b9010120249ff5d63467df09948
ada: Fix freezing of Default_Value expressions

This patch fixes an infinite loop in freezing that occurred when
expression of the Default_Value aspect includes a declare expression
with an object of the annotated type.

gcc/ada/

* sem_ch13.adb (Check_Aspect_Too_Late): Prevent freezing during
preanalysis.
gcc/ada/sem_ch13.adb