diff options
author | Justin Squirek <squirek@adacore.com> | 2022-09-06 14:35:53 +0000 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2022-09-12 10:16:53 +0200 |
commit | 60bb81e0db60f1a0f6be8ece24a05052aba21b20 (patch) | |
tree | aa74670f941b3553b5fc7b1ced86c0856cf2d4e1 /gcc/ada/gcc-interface/decl.cc | |
parent | bd548d67e7141c29d4a7b81ca893402bc2ef100a (diff) | |
download | gcc-60bb81e0db60f1a0f6be8ece24a05052aba21b20.zip gcc-60bb81e0db60f1a0f6be8ece24a05052aba21b20.tar.gz gcc-60bb81e0db60f1a0f6be8ece24a05052aba21b20.tar.bz2 |
[Ada] Storage_Error raised analyzing type with call in its range constraint
This patch corrects a problem in the compiler whereby the determination of
scope levels during the generation of accessibility checks for function calls
within range constraints leads to a compiler crash due to the type not being
fully analyzed at the point in which its scope depth must be obtained.
gcc/ada/
* sem_util.adb
(Innermost_Master_Scope_Depth): Detect and handle case where scope
depth is not set on an enclosing scope.
Diffstat (limited to 'gcc/ada/gcc-interface/decl.cc')
0 files changed, 0 insertions, 0 deletions