https://gcc.gnu.org/g:e8303f86c6df55435395a1ada79a4897d70265c5

commit r16-4054-ge8303f86c6df55435395a1ada79a4897d70265c5
Author: Viljar Indus <[email protected]>
Date:   Thu Sep 11 13:46:36 2025 +0300

    ada: Fix Is_Case_Choice_Pattern for allocators
    
    gcc/ada/ChangeLog:
    
            * sem_case.adb (Is_Case_Choice_Pattern): Return False for 
allocators.

Diff:
---
 gcc/ada/sem_case.adb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/ada/sem_case.adb b/gcc/ada/sem_case.adb
index c81b56337f6a..050e456d49c3 100644
--- a/gcc/ada/sem_case.adb
+++ b/gcc/ada/sem_case.adb
@@ -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

Reply via email to