summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gcc/ada/sem_ch3.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ada/sem_ch3.adb b/gcc/ada/sem_ch3.adb
index 44cd6c65e03..1543e254c89 100644
--- a/gcc/ada/sem_ch3.adb
+++ b/gcc/ada/sem_ch3.adb
@@ -4480,6 +4480,7 @@ package body Sem_Ch3 is
-- the enclosing scope.
P := Parent (N);
+
if Nkind (P) = N_Subprogram_Body
and then Nkind (N) = N_Function_Specification
then
OpenPOWER on IntegriCloud