diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2019-09-19 08:13:48 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2019-09-19 08:13:48 +0000 |
commit | 46a500a5cc81138ada165e97e63aed7bea4103e2 (patch) | |
tree | 0ee8d456a508563c64f8736836250e86421007c6 /gcc/tree-vectorizer.h | |
parent | f5766e3b541a9fb2d4365281f5c9da4f80e9622c (diff) | |
download | gcc-46a500a5cc81138ada165e97e63aed7bea4103e2.zip gcc-46a500a5cc81138ada165e97e63aed7bea4103e2.tar.gz gcc-46a500a5cc81138ada165e97e63aed7bea4103e2.tar.bz2 |
[Ada] Fix run-time segfault with derived access-to-subprogram type
This fixes a segfault at run time for the call to a local subprogram
through an access value if the type of this access value is derived
from an initial access-to-subprogram type and the access value was
originally obtained with the initial type.
2019-09-19 Eric Botcazou <ebotcazou@adacore.com>
gcc/ada/
* sem_ch3.adb (Build_Derived_Access_Type): If this is an access-
to-subprogram type, copy Can_Use_Internal_Rep from the parent.
gcc/testsuite/
* gnat.dg/access9.adb: New testcase.
From-SVN: r275945
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions