[Bug c++/82781] [6/7/8 Regression] Vector extension operators return wrong result in constexpr
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 20 12:58:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82781
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Nov 20 12:57:50 2017
New Revision: 254952
URL: https://gcc.gnu.org/viewcvs?rev=254952&root=gcc&view=rev
Log:
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:
trunk/gcc/testsuite/g++.dg/ext/constexpr-pr82781.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list