re PR c++/90969 (ICE: tree check: expected array_type, have vector_type in array_ref_...
authorJakub Jelinek <jakub@redhat.com>
Tue, 25 Jun 2019 14:05:13 +0000 (16:05 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 25 Jun 2019 14:05:13 +0000 (16:05 +0200)
commitbc2687dd948d74b181f71bf4886f4b8719c51f57
treec8cce4ebcdc9ed939733a58b9aa88601aae719ec
parente88d863cbde6ee90709d291670a843346f84d3b6
re PR c++/90969 (ICE: tree check: expected array_type, have vector_type in array_ref_low_bound, at tree.c:13570)

PR c++/90969
* constexpr.c (cxx_eval_array_reference): Don't look through VCE from
vector type if lval.

* g++.dg/ext/vector38.C: New test.

From-SVN: r272654
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/vector38.C [new file with mode: 0644]