This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/82781] [6/7 Regression] Vector extension operators return wrong result in constexpr


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82781

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Dec 15 21:50:00 2017
New Revision: 255707

URL: https://gcc.gnu.org/viewcvs?rev=255707&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-7-branch/gcc/testsuite/g++.dg/ext/constexpr-pr82781.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/constexpr.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]