[Ada] Spurious error in generic dispatching constructor call
authorJavier Miranda <miranda@adacore.com>
Tue, 26 May 2020 18:54:15 +0000 (14:54 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 10 Jul 2020 09:16:19 +0000 (05:16 -0400)
commit4e91f87c3e7b76af8a73b52498f76aa3aea50b69
treed995dbcd77d19ed246110f7cfc7116da6dd42112
parent5f43e7893006c3cc78d196ec1e7579216c177161
[Ada] Spurious error in generic dispatching constructor call

gcc/ada/

* exp_ch6.adb (Make_Build_In_Place_Iface_Call_In_Allocator):
Build the internal anonymous access type using as a reference
the designated type imposed by the context (instead of using the
return type of the called function).
gcc/ada/exp_ch6.adb