[Ada] Crash on if expression inside declare expression
authorArnaud Charlet <charlet@adacore.com>
Tue, 1 Dec 2020 14:44:33 +0000 (09:44 -0500)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 17 Dec 2020 10:49:23 +0000 (05:49 -0500)
commitb7e68e7de0fb6dfc9099a333f800dc904eb3c9e7
treec978bcc3cf29dd1f04841abe9bd98453df42fc5f
parent81392ae7baf3e6d8a5d9910f0d4f6b571a52afe3
[Ada] Crash on if expression inside declare expression

gcc/ada/

* sem_res.adb (Resolve_Declare_Expression): Need to establish a
transient scope in case Expression (N) requires actions to be
wrapped.  Code cleanup.
* exp_ch7.adb, exp_ch11.adb: Code cleanup.
gcc/ada/exp_ch11.adb
gcc/ada/exp_ch7.adb
gcc/ada/sem_res.adb