[Ada] Fix spurious error on child library-level subprogram with aspects
commit91edb3f66cb3572048547f06628eeb38ddadd44c
authorYannick Moy <moy@adacore.com>
Tue, 29 Sep 2020 07:03:18 +0000 (29 09:03 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 24 Nov 2020 10:16:01 +0000 (24 05:16 -0500)
tree655dbaabbc6e0f0b656829cd1f528f6e9591b749
parent1cc9ecae0ab80e9aa170950725a47ef285e78c9d
[Ada] Fix spurious error on child library-level subprogram with aspects

gcc/ada/

* sem_ch10.adb (Analyze_Compilation_Unit): Move aspects from
body to the newly created spec.
gcc/ada/sem_ch10.adb