aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/table.adb
diff options
context:
space:
mode:
authorEd Schonberg <schonberg@adacore.com>2019-08-14 09:51:34 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2019-08-14 09:51:34 +0000
commit16b9e3c32d0c52334644021e5e0465b1c43d190e (patch)
treec953956ad17a9263c210e8f7d5199c4b60d8fdea /gcc/ada/table.adb
parent4cac730ccc741a9bf780390c2703163edc6da470 (diff)
downloadgcc-16b9e3c32d0c52334644021e5e0465b1c43d190e.zip
gcc-16b9e3c32d0c52334644021e5e0465b1c43d190e.tar.gz
gcc-16b9e3c32d0c52334644021e5e0465b1c43d190e.tar.bz2
[Ada] Crash on quantified expression in disabled assertion
The defining identifier of a quantified expression may be the freeze point of its type. If the quantified expression appears in an assertion that is disavbled, the freeze node for that type may appear in a tree that will be discarded when the enclosing pragma is elaborated. To ensure that the freeze node is reachable for subsquent uses we must generate its freeze node explicitly when the quantified expression is analyzed. 2019-08-14 Ed Schonberg <schonberg@adacore.com> gcc/ada/ * exp_ch4.adb (Expand_N_Quantified_Expression): Freeze explicitly the type of the loop parameter. gcc/testsuite/ * gnat.dg/assert2.adb, gnat.dg/assert2.ads: New testcase. From-SVN: r274456
Diffstat (limited to 'gcc/ada/table.adb')
0 files changed, 0 insertions, 0 deletions