]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/constexpr.cc
Consolidate constexpr array handling.
authorJason Merrill <jason@redhat.com>
Tue, 18 Jun 2019 16:08:23 +0000 (12:08 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 18 Jun 2019 16:08:23 +0000 (12:08 -0400)
commit043666e0955d64ed538f2a5511f9fdc5484b657a
treec32eb7673616c65c1916a5157f9594d6f0673e3c
parent02a8575c0cc6cc0004afaee095185775cd61f080
Consolidate constexpr array handling.

* constexpr.c (eval_and_check_array_index): Split out from...
(cxx_eval_array_reference): ...here.
(cxx_eval_store_expression): Use it here, too.
(diag_array_subscript): Take location.  Strip location wrapper.

From-SVN: r272430
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp1y/constexpr-79655.C
gcc/testsuite/g++.dg/cpp1y/pr77830.C
gcc/testsuite/g++.dg/ext/constexpr-vla1.C
This page took 0.061566 seconds and 5 git commands to generate.