exp_ch3.adb (Expand_N_Object_Declaration): If the object has a class-wide type and...
authorEd Schonberg <schonberg@adacore.com>
Thu, 3 Jan 2013 10:24:28 +0000 (10:24 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 3 Jan 2013 10:24:28 +0000 (11:24 +0100)
commitc1ce06917691217b9e199ce4c80566f5545ee911
tree6da155dd59d229880bf05e04265009d62f7ac6ad
parent329ea7ece205200951bf92a642196935dfa2dad1
exp_ch3.adb (Expand_N_Object_Declaration): If the object has a class-wide type and a renaming declaration is created for it...

2013-01-03  Ed Schonberg  <schonberg@adacore.com>

* exp_ch3.adb (Expand_N_Object_Declaration): If the object has
a class-wide type and a renaming declaration is created for it,
preserve entity chain, which already contains generated internal
types. This ensures that freezing actions are properly generated
for all objects declared subsequently in the same scope, and
that debugging information is generated for them.
* sem_util.adb, sem_util.ads (we): New debugging routine, to
display entity chain of a given scope.

From-SVN: r194843
gcc/ada/ChangeLog
gcc/ada/exp_ch3.adb
gcc/ada/sem_ch8.adb
gcc/ada/sem_ch8.ads