aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-data-ref.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-01-31 21:45:41 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2018-01-31 21:45:41 +0100
commit08b3748ce73c94460f314cb34f21702049650e72 (patch)
tree4aa63514381983678f6850e2ca0d9829a59a773f /gcc/tree-data-ref.c
parent1af734911a08c4cb41046cb0e0ffe2206dcdf142 (diff)
downloadgcc-08b3748ce73c94460f314cb34f21702049650e72.zip
gcc-08b3748ce73c94460f314cb34f21702049650e72.tar.gz
gcc-08b3748ce73c94460f314cb34f21702049650e72.tar.bz2
re PR c++/83993 (ICE: constant not recomputed when ADDR_EXPR changed)
PR c++/83993 * constexpr.c (diag_array_subscript): Emit different diagnostics if TYPE_DOMAIN (arraytype) is NULL. (cxx_eval_array_reference, cxx_eval_store_expression): For arrays with NULL TYPE_DOMAIN use size_zero_node as nelts. * g++.dg/init/pr83993-1.C: New test. * g++.dg/cpp0x/pr83993.C: New test. From-SVN: r257264
Diffstat (limited to 'gcc/tree-data-ref.c')
0 files changed, 0 insertions, 0 deletions