sem_ch6.adb (Check_Missing_Return): Do not report a missing return statement on a...
authorEd Schonberg <schonberg@adacore.com>
Fri, 23 Oct 2015 12:51:30 +0000 (12:51 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 23 Oct 2015 12:51:30 +0000 (14:51 +0200)
commit241fac51c3e6a4745d28b36121702325212c3af6
tree01791b6f975000aa2e526411d4e91cd221b8e1d0
parent43184ab7cd9ee60b3aa12eeed66f42076537548f
sem_ch6.adb (Check_Missing_Return): Do not report a missing return statement on a function body constructed to...

2015-10-23  Ed Schonberg  <schonberg@adacore.com>

* sem_ch6.adb (Check_Missing_Return): Do not report a missing
return statement on a function body constructed to complete a
package body for a premature instantiation.

2015-10-23  Ed Schonberg  <schonberg@adacore.com>

* exp_ch6.adb (Build_Procedure_Body_Form): Replace body of
original function with that of generated procedure, to simplify
processing and avoid scoping problems with local declarations.
(Rewrite_Function_Call_For_C): Handle properly the case of a
parameterless function.

From-SVN: r229249
gcc/ada/ChangeLog
gcc/ada/exp_ch6.adb
gcc/ada/sem_ch6.adb