[Ada] Missing attribute update in new_copy_tree

Pierre-Marie de Rodat derodat@adacore.com
Wed Aug 21 08:31:00 GMT 2019


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

Tested on x86_64-pc-linux-gnu, committed on trunk

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 2302 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190821/a8c27a59/attachment.bin>


More information about the Gcc-patches mailing list