aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-expr.cc
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2024-12-04 13:45:24 +0100
committerMarc Poulhiès <dkm@gcc.gnu.org>2025-01-03 16:39:12 +0100
commitcca7647392727038c86a9eb785cbd673896afa57 (patch)
tree2d58d6eea7b89849929f923965d973f8cae57722 /gcc/fortran/trans-expr.cc
parent34ace6d7b63d04d26fe7b190764ede70aaa75f32 (diff)
downloadgcc-cca7647392727038c86a9eb785cbd673896afa57.zip
gcc-cca7647392727038c86a9eb785cbd673896afa57.tar.gz
gcc-cca7647392727038c86a9eb785cbd673896afa57.tar.bz2
ada: Leave empty parent in an array component of an anonymous access type
An itype created for a record component with an anonymous access type has empty parent. However, a similar itype created for an array component has its parent copied from the parent of the array type. The above discrepancy appears to be not needed for the frontend. Also, it is confusing for the GNATprove backend, because it looks like the itype entity of the array component comes from a declaration of the array itself. gcc/ada/ChangeLog: * sem_ch3.adb (Array_Type_Declaration): Don't copy parent for an itype created by an array component declaration.
Diffstat (limited to 'gcc/fortran/trans-expr.cc')
0 files changed, 0 insertions, 0 deletions