[Ada] Allow aspect Relaxed_Initialization on protected entries
authorPiotr Trojanek <trojanek@adacore.com>
Sun, 10 May 2020 21:16:43 +0000 (23:16 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 7 Jul 2020 09:26:52 +0000 (05:26 -0400)
gcc/ada/

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

gcc/ada/sem_ch13.adb

index a0e5146..e73cf94 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