[Bug c++/82781] [6 Regression] Vector extension operators return wrong result in constexpr
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 25 16:48:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82781
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jun 25 16:47:39 2018
New Revision: 262031
URL: https://gcc.gnu.org/viewcvs?rev=262031&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/ext/constexpr-pr82781.C
Modified:
branches/gcc-6-branch/gcc/cp/ChangeLog
branches/gcc-6-branch/gcc/cp/constexpr.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list