]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix regression of finalization primitive selection
authorRonan Desplanques <desplanques@adacore.com>
Fri, 11 Jul 2025 09:28:35 +0000 (11:28 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 25 Jul 2025 08:09:35 +0000 (10:09 +0200)
commita999dc31581f0b3239668726cc508a02ce1f2450
tree0040315a7a8223f10659fd8da569f68c50f41c78
parent93aa395bc32d0e0c7254eb9ab1eee546809d4338
ada: Fix regression of finalization primitive selection

A recent patch introduced a new flag to mark the types for which looking
up finalization primitives needs special handling. But there was one
place in Build_Derived_Record_Type where the flag was not set when it
should, which introduced a regression in some cases.

This patch adds the missing setting of the flag.

gcc/ada/ChangeLog:

* sem_ch3.adb (Build_Derived_Record_Type): Set flag appropriately.
gcc/ada/sem_ch3.adb