[Ada] Spurious error in generic dispatching constructor
authorJavier Miranda <miranda@adacore.com>
Tue, 16 Jun 2020 17:49:04 +0000 (13:49 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 27 Jul 2020 08:05:17 +0000 (04:05 -0400)
commit84ae33e7f55bc1c183ab907370dc6b967bd9b13a
tree6e97f50d5bd56c1f6ced9ae8eaee8c450d81299d
parent36f0cf4e6035406f64158946fff3bef9e2b4059c
[Ada] Spurious error in generic dispatching constructor

gcc/ada/

* exp_ch6.adb (Make_Build_In_Place_Iface_Call_In_Allocator):
Revert previous patch, and add a missing type conversion to
displace the pointer to the allocated object to reference the
target dispatch table.
gcc/ada/exp_ch6.adb