]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Fix Is_Case_Choice_Pattern for allocators
authorViljar Indus <indus@adacore.com>
Thu, 11 Sep 2025 10:46:36 +0000 (13:46 +0300)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 23 Sep 2025 13:01:13 +0000 (15:01 +0200)
gcc/ada/ChangeLog:

* sem_case.adb (Is_Case_Choice_Pattern): Return False for allocators.

gcc/ada/sem_case.adb

index c81b56337f6a6b92d586c632d6d08c60b8b1f17a..050e456d49c3525215f7ba7a323b2abac11e2f20 100644 (file)
@@ -3890,6 +3890,7 @@ package body Sem_Case is
                return True;
 
             when N_Empty
+               | N_Allocator
                | N_Statement_Other_Than_Procedure_Call
                | N_Procedure_Call_Statement
                | N_Declaration