]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix crash in quantified expression expansion
authorRonan Desplanques <desplanques@adacore.com>
Mon, 1 Jul 2024 08:16:27 +0000 (10:16 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 1 Aug 2024 15:14:37 +0000 (17:14 +0200)
commitf6629e1458aab45c59c58ed856658f70b23f5a66
tree08719145b2fc99dc72ac95422f961151b42c8bcb
parent0a7a8ff2a1d7337fbf76d036b270e36a9230f37b
ada: Fix crash in quantified expression expansion

Before this patch, the compiler failed to handle the case where the for loop
created by expansion of a quantified expression required cleanup handlers.

gcc/ada/

* sem_ch5.adb (Analyze_Loop_Parameter_Specification): Fix test for
expanded quantified expression context.
(Is_Expanded_Quantified_Expr): New function.
gcc/ada/sem_ch5.adb