diff options
author | Marc Poulhiès <poulhies@adacore.com> | 2022-06-30 13:35:10 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-07-13 10:01:15 +0000 |
commit | 7a03001cd2dadbe845f109382e4c0dc2dbb50820 (patch) | |
tree | eeaccc1856354ecb8769dd3cfb9681d085329572 /gcc/ada/gcc-interface/utils.cc | |
parent | 94425248c769d45b5932079321311392e4d8e952 (diff) | |
download | gcc-7a03001cd2dadbe845f109382e4c0dc2dbb50820.zip gcc-7a03001cd2dadbe845f109382e4c0dc2dbb50820.tar.gz gcc-7a03001cd2dadbe845f109382e4c0dc2dbb50820.tar.bz2 |
[Ada] Fix if expression returning slice
The compiler incorrectly assumed the prefix for a slice returned in one
branch of an if expression has its bounds known at compile time and would
crash when this is not true.
gcc/ada/
* exp_ch4.adb (Expand_N_If_Expression): Test for compile time
known bounds when handling slices.
Diffstat (limited to 'gcc/ada/gcc-interface/utils.cc')
0 files changed, 0 insertions, 0 deletions