projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cc9eca
)
[Ada] Fix spurious error on child library-level subprogram with aspects
author
Yannick Moy
<moy@adacore.com>
Tue, 29 Sep 2020 07:03:18 +0000
(09:03 +0200)
committer
Pierre-Marie de Rodat
<derodat@adacore.com>
Tue, 24 Nov 2020 10:16:01 +0000
(
05:16
-0500)
gcc/ada/
* sem_ch10.adb (Analyze_Compilation_Unit): Move aspects from
body to the newly created spec.
gcc/ada/sem_ch10.adb
patch
|
blob
|
history
diff --git
a/gcc/ada/sem_ch10.adb
b/gcc/ada/sem_ch10.adb
index
aab186c
..
2d1232e
100644
(file)
--- a/
gcc/ada/sem_ch10.adb
+++ b/
gcc/ada/sem_ch10.adb
@@
-828,6
+828,7
@@
package body Sem_Ch10 is
-- of the child unit does not act as spec any longer.
Set_Acts_As_Spec (N, False);
+ Move_Aspects (From => Unit_Node, To => Unit (Lib_Unit));
Set_Is_Child_Unit (Defining_Entity (Unit_Node));
Set_Debug_Info_Needed (Defining_Entity (Unit (Lib_Unit)));
Set_Comes_From_Source_Default (SCS);