2014-08-04 Thomas Quinot <quinot@adacore.com>
commit37a399967d072d4dd9600672135761bae517251d
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Aug 2014 10:13:04 +0000 (4 10:13 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Aug 2014 10:13:04 +0000 (4 10:13 +0000)
tree0cbbc100e132aa2a0f288573f50ae517520872b1
parent461c69f75bf19e74373577de843c071388503365
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213562 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/freeze.adb
gcc/ada/sem_ch5.adb