[Ada] Fix internal error on allocator with function call
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 31 May 2018 10:46:52 +0000 (10:46 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 31 May 2018 10:46:52 +0000 (10:46 +0000)
commit1b6f8e9778b58e190f40a1137eaba618c529110f
tree304e0a126a9af3e6c8f2caff389caa00785eb4e9
parent3c5d07ab057a1cbe23ca655d172bfb53581be960
[Ada] Fix internal error on allocator with function call

2018-05-31  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* gcc-interface/trans.c (Call_to_gnu): If this is a function call and
there is no target, also create a temporary for the return value for
an allocator if the type is an unconstrained record type with default
discriminant.

From-SVN: r261007
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c