projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ac15b1
)
[Ada] Allow aspect Relaxed_Initialization on protected entries
author
Piotr Trojanek
<trojanek@adacore.com>
Sun, 10 May 2020 21:16:43 +0000
(23:16 +0200)
committer
Pierre-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
patch
|
blob
|
history
diff --git
a/gcc/ada/sem_ch13.adb
b/gcc/ada/sem_ch13.adb
index a0e5146e59472115f2a43eb226358e14820a57f6..e73cf949dfb6ed07631c2ee3ce4f3fa88b6c2065 100644
(file)
--- a/
gcc/ada/sem_ch13.adb
+++ b/
gcc/ada/sem_ch13.adb
@@
-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