]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR c++/82781 (Vector extension operators return wrong result in constexpr)
authorJakub Jelinek <jakub@redhat.com>
Mon, 25 Jun 2018 16:47:39 +0000 (18:47 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 25 Jun 2018 16:47:39 +0000 (18:47 +0200)
commit4f408a9a24eeaec92bf6852b17d33b0b7a8db6fe
treebba182817d943988d3da4bf43758e483ce517239
parent55cafa8ea10c3379bc03642eb82b81e5a0fbf059
backport: re PR c++/82781 (Vector extension operators return wrong result in constexpr)

Backported from mainline
2017-11-20  Jakub Jelinek  <jakub@redhat.com>

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: r262031
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/constexpr-pr82781.C [new file with mode: 0644]