[Ada] Missing actual for generated initialization procedure
authorJustin Squirek <squirek@adacore.com>
Thu, 4 Jul 2019 08:06:30 +0000 (08:06 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 4 Jul 2019 08:06:30 +0000 (08:06 +0000)
commitfa528281a9d056bf5beb867333ea4eea638a102d
tree6965417b38eebeb0c1d8bba9b413c09254dcf3b8
parentb27f2c40019569ba7c4d7e38edb3e2ebcd0593c6
[Ada] Missing actual for generated initialization procedure

This patch fixes an issue whereby the use of an allocator with a
composite type containing null-excluding components may lead to a
compile time error due to incorrect code generation.

2019-07-04  Justin Squirek  <squirek@adacore.com>

gcc/ada/

* exp_ch3.adb (Build_Initialization_Call): Fixup
*_skip_null_excluding_check argument to handle new default.
(Init_Formals): Make *_skip_null_excluding_check formal default
to False
* exp_ch4.adb (Expand_N_Allocator): Add comment to note heavy
code duplication

gcc/testsuite/

* gnat.dg/allocator.adb: New testcase.

From-SVN: r273061
gcc/ada/ChangeLog
gcc/ada/exp_ch3.adb
gcc/ada/exp_ch4.adb
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/allocator.adb [new file with mode: 0644]