re PR c++/92015 (internal compiler error: in cxx_eval_array_reference, at cp/constexp...
authorJakub Jelinek <jakub@redhat.com>
Mon, 21 Oct 2019 18:51:43 +0000 (20:51 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 21 Oct 2019 18:51:43 +0000 (20:51 +0200)
commit5b884e9400741569ee385f0de4590c1730aa600c
tree165246beafb86b08de2359aba199728f9d7aa285
parentafa8c090bf5ee17d89628b4885efad3a7ea62505
re PR c++/92015 (internal compiler error: in cxx_eval_array_reference, at cp/constexpr.c:2568)

PR c++/92015
* constexpr.c (cxx_eval_component_reference, cxx_eval_bit_field_ref):
Use STRIP_ANY_LOCATION_WRAPPER on CONSTRUCTOR elts.

* g++.dg/cpp0x/constexpr-92015.C: New test.

From-SVN: r277267
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-92015.C [new file with mode: 0644]