aboutsummaryrefslogtreecommitdiff
path: root/gcc/genautomata.c
diff options
context:
space:
mode:
authorJustin Squirek <squirek@adacore.com>2020-01-23 13:12:11 -0500
committerPierre-Marie de Rodat <derodat@adacore.com>2020-06-04 05:11:04 -0400
commita0c94bd34a4ed6b8239d9a6d749ad5c94022acff (patch)
treeb0d503524a4470575126995ae6dd1a341160d6c3 /gcc/genautomata.c
parent7c02e403d145989ed9f291123689baa96f455fb5 (diff)
downloadgcc-a0c94bd34a4ed6b8239d9a6d749ad5c94022acff.zip
gcc-a0c94bd34a4ed6b8239d9a6d749ad5c94022acff.tar.gz
gcc-a0c94bd34a4ed6b8239d9a6d749ad5c94022acff.tar.bz2
[Ada] Missing accessibility check on access discriminant in extended return
2020-06-04 Justin Squirek <squirek@adacore.com> gcc/ada/ * sem_ch6.adb (Check_Return_Obj_Accessibility): Change to Check_Return_Construct_Accessibility to better reflect its purpose. Add loop to properly obtain the object declaration from an expanded extended return statement and add calls to get the original node for associated values. Also, avoid checks when the return statement being examined comes from an internally generated function.
Diffstat (limited to 'gcc/genautomata.c')
0 files changed, 0 insertions, 0 deletions