diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2023-01-26 18:16:14 +0100 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-05-16 10:30:58 +0200 |
commit | ae334957c7dbbf3db6b612cd6f5fe058877abac4 (patch) | |
tree | d534fa6542f5436c7c9761184a7b1fed4102e2e5 /gcc/ada/usage.adb | |
parent | 5f8a29bd3487a60cf513c4976769b7dc0113f227 (diff) | |
download | gcc-ae334957c7dbbf3db6b612cd6f5fe058877abac4.zip gcc-ae334957c7dbbf3db6b612cd6f5fe058877abac4.tar.gz gcc-ae334957c7dbbf3db6b612cd6f5fe058877abac4.tar.bz2 |
ada: Fix internal error on 'Image applied to array component
This happens because the array component depends on a discriminant.
gcc/ada/
* exp_imgv.adb (Rewrite_Object_Image): If the prefix is a component
that depends on a discriminant, create an actual subtype for it.
Diffstat (limited to 'gcc/ada/usage.adb')
0 files changed, 0 insertions, 0 deletions