re PR c++/82781 (Vector extension operators return wrong result in constexpr)
authorJakub Jelinek <jakub@redhat.com>
Mon, 20 Nov 2017 12:57:50 +0000 (13:57 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 20 Nov 2017 12:57:50 +0000 (13:57 +0100)
commitf370e36dc9aba0a5cafa4e6fac893b49acbfb6e8
treee033191b795202233509a9f5a4c1100f881dfdc6
parent1ebafce0bc9072f9aabd0692bbb1aeda672f6b60
re PR c++/82781 (Vector extension operators return wrong result in constexpr)

PR c++/82781
* constexpr.c (cxx_eval_vector_conditional_expression): New function.
(cxx_eval_constant_expression) <case VEC_COND_EXPR>: Use it instead
of cxx_eval_conditional_expression.

* g++.dg/ext/constexpr-pr82781.C: New test.

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