[Ada] Interface behaves differently from abstract tagged null
authorJavier Miranda <miranda@adacore.com>
Fri, 2 Jul 2021 17:13:12 +0000 (13:13 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 21 Sep 2021 15:24:57 +0000 (15:24 +0000)
commit16e307b9a48813a08852fec16e77eb921db78b37
tree4d04661ffb07d56ab2ea5e53c6a35ed2b3ed8b14
parentb23cdc01588b60f52a8c70c8f4465a068b49d317
[Ada] Interface behaves differently from abstract tagged null

gcc/ada/

* exp_ch6.adb (Expand_Simple_Function_Return): For explicit
dereference of type conversion, enable code that ensures that
the tag of the result is that of the result type.
gcc/ada/exp_ch6.adb