]> git.ipfire.org Git - thirdparty/gcc.git/commit
Consolidate constexpr array handling.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Jun 2019 16:08:23 +0000 (16:08 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Jun 2019 16:08:23 +0000 (16:08 +0000)
commita43f2adc8bc0bca971aa2fdcd0fb8748afd3861c
treec32eb7673616c65c1916a5157f9594d6f0673e3c
parente8e065dcf5a6db6096741f593e8322bdda8156fc
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@272430 138bc75d-0d04-0410-961f-82ee72b054a4
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