]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Allow aspect Relaxed_Initialization on protected entries
authorPiotr Trojanek <trojanek@adacore.com>
Sun, 10 May 2020 21:16:43 +0000 (23:16 +0200)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:16:28 +0000 (13:16 -0300)
gcc/ada/

* sem_ch13.adb (Analyze_Relaxed_Parameter): Fix for protected
entries.

gcc/ada/sem_ch13.adb

index a0e5146e59472115f2a43eb226358e14820a57f6..e73cf949dfb6ed07631c2ee3ce4f3fa88b6c2065 100644 (file)
@@ -2276,7 +2276,7 @@ package body Sem_Ch13 is
 
                --  Annotation of a subprogram; aspect expression is required
 
-               elsif Is_Subprogram (E) then
+               elsif Is_Subprogram_Or_Entry (E) then
                   if Present (Expr) then
 
                      --  If we analyze subprogram body that acts as its own