[multiple changes]
authorArnaud Charlet <charlet@gcc.gnu.org>
Mon, 4 Aug 2014 10:13:04 +0000 (12:13 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 4 Aug 2014 10:13:04 +0000 (12:13 +0200)
commit0fea901b8fe3f3476282e3db52f329002f551381
tree0cbbc100e132aa2a0f288573f50ae517520872b1
parent11261647740b1ae87c271c47c5849f62628f6a91
[multiple changes]

2014-08-04  Thomas Quinot  <quinot@adacore.com>

* sem_ch5.adb: Minor reformatting.

2014-08-04  Ed Schonberg  <schonberg@adacore.com>

* freeze.adb (Late_Freeze_Subprogram): Following AI05-151,
a function can return a limited view of a type declared
elsewhere. In that case the function cannot be frozen at the end
of its enclosing package. If its first use is in a different unit,
it cannot be frozen there, but if the call is legal the full view
of the return type is available and the subprogram can now be
frozen. However the freeze node cannot be inserted at the point
of call, but rather must go in the package holding the function,
so that the backend can process it in the proper context.

From-SVN: r213562
gcc/ada/ChangeLog
gcc/ada/freeze.adb
gcc/ada/sem_ch5.adb