[Ada] Missing attribute update in new_copy_tree
authorJavier Miranda <miranda@adacore.com>
Wed, 21 Aug 2019 08:29:33 +0000 (08:29 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Wed, 21 Aug 2019 08:29:33 +0000 (08:29 +0000)
commit93a08e1e4a6218aaccac5538cf0b263ddae78ff8
treee59f947b0949df9d161425854501dd2d0cbe2e50
parentcfc03d536f3b4b20e0084a65e90d5a9491721100
[Ada] Missing attribute update in new_copy_tree

The compiler crashes processing an internally generated cloned tree that
has a subprogram call with a named actual parameter.

2019-08-21  Javier Miranda  <miranda@adacore.com>

gcc/ada/

* sem_util.adb (Update_Named_Associations): Update
First_Named_Actual when the subprogram call has a single named
actual.

gcc/testsuite/

* gnat.dg/implicit_param.adb, gnat.dg/implicit_param_pkg.ads:
New testcase.

From-SVN: r274776
gcc/ada/ChangeLog
gcc/ada/sem_util.adb
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/implicit_param.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/implicit_param_pkg.ads [new file with mode: 0644]