diff options
author | Javier Miranda <miranda@adacore.com> | 2023-03-26 11:45:50 +0000 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-05-26 09:29:19 +0200 |
commit | 3e62561d5ffbb07fa97a4dddfd729fceb7cfce75 (patch) | |
tree | 5680497c88b5cc1a6d0b73ebe1597e5ae628193d /gcc/ada/debug.adb | |
parent | 54783e61dd9bfd0f0289890ba9240deeef1af81a (diff) | |
download | gcc-3e62561d5ffbb07fa97a4dddfd729fceb7cfce75.zip gcc-3e62561d5ffbb07fa97a4dddfd729fceb7cfce75.tar.gz gcc-3e62561d5ffbb07fa97a4dddfd729fceb7cfce75.tar.bz2 |
ada: Crash on function returning allocated object containing tasks
The frontend crashes when a function returns an object of a
limited type that may have task components, has discriminants,
and the object is created with an allocator.
gcc/ada/
* exp_ch4.adb
(Expand_N_Allocator): If an allocator with constraints is called
in the return statement of a function returning a general access
type, then propagate to the itype the master of the general
access type (since it is the master associated with the
returned object).
Diffstat (limited to 'gcc/ada/debug.adb')
0 files changed, 0 insertions, 0 deletions