[Ada] Fix for freezing of expression functions
authorJustin Squirek <squirek@adacore.com>
Fri, 25 May 2018 09:04:37 +0000 (09:04 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Fri, 25 May 2018 09:04:37 +0000 (09:04 +0000)
commit320fbd1ebe24af4b2059759e7432e4c294eb9170
tree3f293e82e1225da8a39e91729799cdb0de0e5744
parent29192f7b77e67ae3bee0138bd0f7262e899226ab
[Ada] Fix for freezing of expression functions

2018-05-25  Justin Squirek  <squirek@adacore.com>

gcc/ada/

* exp_ch6.adb (Expand_Simple_Function_Return): Add guard in check to
generate code for 6.5(8-10) so that we don't get an assertion error
when dealing with an incomplete return type.

From-SVN: r260733
gcc/ada/ChangeLog
gcc/ada/exp_ch6.adb