[Ada] Fix validity checks on attribute 'Old prefix
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 27 Apr 2020 12:22:53 +0000 (14:22 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 19 Jun 2020 08:17:11 +0000 (04:17 -0400)
commitd48bb126eac73c0d1e311eb4084a6f62742fbf76
tree1a0571bd8e689cb2fc35201c5fce474eed8b70cb
parentd57f8e40433cb73fa08fab92b3238a1981c7c037
[Ada] Fix validity checks on attribute 'Old prefix

2020-06-19  Piotr Trojanek  <trojanek@adacore.com>

gcc/ada/

* exp_attr.adb (Expand_N_Attribute_Reference): Call Ensure_Valid
on the expression of an object declaration that captures the
value of 'Old prefix.
gcc/ada/exp_attr.adb