]> git.ipfire.org Git - thirdparty/gcc.git/commit
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:42:26 +0000 (18:42 +0200)
commit12847c39d9d53a74c2351f309ad2dd9c299720e1
tree3a6291c9b959f92066c3727a992d6eb69b1c3c32
parent7d919c33fbd29a996326840dae3b5e093c3190f4
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