diff options
author | Yannick Moy <moy@adacore.com> | 2020-07-06 14:58:28 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2020-10-19 05:53:38 -0400 |
commit | be8d605f16ed6ab090b411a7810911f4b7b7719a (patch) | |
tree | c2c4f1955130e421aaf2a2c61533325b8568ce6d /gcc/tree-complex.c | |
parent | 17ea7fad2830423188e2055708bb2d4a983c33bc (diff) | |
download | gcc-be8d605f16ed6ab090b411a7810911f4b7b7719a.zip gcc-be8d605f16ed6ab090b411a7810911f4b7b7719a.tar.gz gcc-be8d605f16ed6ab090b411a7810911f4b7b7719a.tar.bz2 |
[Ada] Reject use of Relaxed_Initialization on scalar/access param or result
gcc/ada/
* sem_ch13.adb (Analyze_Aspect_Relaxed_Initialization): Fix bug
where a call to Error_Msg_N leads to crash due to
Error_Msg_Name_1 being removed by the call, while a subsequent
call to Error_Msg_N tries to use it. The variable
Error_Msg_Name_1 should be restored prior to the next call. Also
add checking for the new rules.
Diffstat (limited to 'gcc/tree-complex.c')
0 files changed, 0 insertions, 0 deletions