[Ada] Fix Default_Storage_Pool aspect handling in generic instantiations
authorEd Schonberg <schonberg@adacore.com>
Mon, 16 Jul 2018 14:11:58 +0000 (14:11 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 16 Jul 2018 14:11:58 +0000 (14:11 +0000)
commitdbe5b438d26161111824727534ef99f4d41e39c4
tree9c8336eb45a417629b3177ac10df66381924929c
parentccc2a6139062395fb5747d0846a1ed6de25293c2
[Ada] Fix Default_Storage_Pool aspect handling in generic instantiations

2018-07-16  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* sem_ch12.adb (Analyze_Package_Instantiation): Handle properly an
instance that carries an aspect Default_Storage_Pool that overrides a
default storage pool that applies to the generic unit. The aspect in
the generic unit was removed before copying it in the instance, rather
than removing it from the copy of the aspects that are appended to the
aspects in the instance.

From-SVN: r262724
gcc/ada/ChangeLog
gcc/ada/sem_ch12.adb