diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2021-03-02 17:58:46 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2021-03-02 18:00:09 +0100 |
commit | 168b75ff54b4e70650b8709816edff13f93e737a (patch) | |
tree | 251d6f96b18c4eeaf8a7be5ce10a875cc7c7d8dc /gcc/go | |
parent | f8e4d7a6597fa81ff927156a5f5d10b7fdaa0bc0 (diff) | |
download | gcc-168b75ff54b4e70650b8709816edff13f93e737a.zip gcc-168b75ff54b4e70650b8709816edff13f93e737a.tar.gz gcc-168b75ff54b4e70650b8709816edff13f93e737a.tar.bz2 |
Fix PR ada/99095
This is a regression present on the mainline and 10 branch, where we fail
to make the bounds explicit for the return value of a function returning
an unconstrained array of a limited record type.
gcc/ada/
PR ada/99095
* sem_ch8.adb (Check_Constrained_Object): Restrict again the special
optimization for limited types to non-array types except in the case
of an extended return statement.
gcc/testsuite/
* gnat.dg/limited5.adb: New test.
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions