diff options
author | Bob Duff <duff@adacore.com> | 2021-11-17 12:06:32 -0500 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-12-01 10:24:42 +0000 |
commit | 9ce9322ccc4aa873d732554c895b821c90017511 (patch) | |
tree | 69b03b618571ed93051cc44127733e7c985d7545 /gcc/fold-const.c | |
parent | 1010cb00c8bac6a35f3fad9fa54d2e4cab2a38ef (diff) | |
download | gcc-9ce9322ccc4aa873d732554c895b821c90017511.zip gcc-9ce9322ccc4aa873d732554c895b821c90017511.tar.gz gcc-9ce9322ccc4aa873d732554c895b821c90017511.tar.bz2 |
[Ada] Fix crash on pragma Compile_Time_Warning/Error
gcc/ada/
* sem_prag.adb (Process_Compile_Time_Warning_Or_Error): Do not
follow the Corresponding_Spec pointer if Acts_As_Spec is True,
because Corresponding_Spec is Empty in that case, so we would
exit the loop prematurely, and incorrectly think we are not
inside a generic unit when we are.
Diffstat (limited to 'gcc/fold-const.c')
0 files changed, 0 insertions, 0 deletions