Fix memory corruption with vector and variant record
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 23 Jun 2020 16:33:28 +0000 (18:33 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 23 Jun 2020 16:35:48 +0000 (18:35 +0200)
commitd63fbcf80081d6fc6b746667fcacc8eb6e34f306
tree0bdd3e645ad6a2cbf1c7dce9aef254e117ff0ade
parentb523ee1f4b139532ecffb2bf707e65cfc5a837fe
Fix memory corruption with vector and variant record

The problem is that Has_Constrained_Partial_View must be tested on the
base type of the designated type of an allocator.

gcc/ada/ChangeLog:
* gcc-interface/trans.c (gnat_to_gnu) <N_Allocator>: Minor tweaks.
Call Has_Constrained_Partial_View on base type of designated type.
gcc/ada/gcc-interface/trans.c