aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-sccvn.c
diff options
context:
space:
mode:
authorEd Schonberg <schonberg@adacore.com>2019-08-20 09:50:38 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2019-08-20 09:50:38 +0000
commitb82f1618c4e8ca7dca229d1337e44873386561dc (patch)
tree49420f5a0fdab1e7dd0035516762c89709a8023a /gcc/tree-ssa-sccvn.c
parentaa090e20d4bb02e829aa7e4d9e49ba06b94e0d5f (diff)
downloadgcc-b82f1618c4e8ca7dca229d1337e44873386561dc.zip
gcc-b82f1618c4e8ca7dca229d1337e44873386561dc.tar.gz
gcc-b82f1618c4e8ca7dca229d1337e44873386561dc.tar.bz2
[Ada] Crash on a Storage_Size aspect depending on attr. of another type
This patch fixes a crash on an aspect specification for Storage_Size for a type T when the expression for the aspect depends on attributes of a previously declared type that is not frozen yet. The temporary declaration that captures the value of the aspect must be part of the actions attached to the freeze node for T. 2019-08-20 Ed Schonberg <schonberg@adacore.com> gcc/ada/ * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case Storage_Size): If the expression for Storage_Size is not static it may depend on characterstics of another type that may bot be frozen yet, so the elaboration of the expression for the aspect must be attached directly to the freeze actions of the type to which it applies. gcc/testsuite/ * gnat.dg/storage_size1.adb: New testcase. From-SVN: r274742
Diffstat (limited to 'gcc/tree-ssa-sccvn.c')
0 files changed, 0 insertions, 0 deletions