[Ada] Crash on expression function and access type
authorEd Schonberg <schonberg@adacore.com>
Thu, 3 Sep 2020 13:54:40 +0000 (09:54 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 23 Oct 2020 08:24:58 +0000 (04:24 -0400)
commit995e0727ce999d3f4d5976e98ce31c70cb0469ed
treeb97e1e104fd8112fa1beaae9ff915daec1104201
parent0edbf7fa1228faabed48586c7f036afe311c1c51
[Ada] Crash on expression function and access type

gcc/ada/

* freeze.adb (Freeze_Type_Refs): Add guard on freezing of the
designated type of an access type appearing in the expression,
when expression includes an explicit dereference whose prefix
includes a function call.
gcc/ada/freeze.adb