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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Jakub Jelinek
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:566e599c8194f789b077eb94a5e45ced2de5b31e

commit r12-8495-g566e599c8194f789b077eb94a5e45ced2de5b31e
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Fri Jun 17 17:40:49 2022 +0200

    c++: Use fold_non_dependent_expr rather than maybe_constant_value in
__builtin_shufflevector handling [PR106001]

    In this case the STATIC_CAST_EXPR expressions in the call aren't
    type nor value dependent, but maybe_constant_value still ICEs on those
    when processing_template_decl.  Calling fold_non_dependent_expr on it
    instead fixes the ICE and folds them to INTEGER_CSTs.

    2022-06-17  Jakub Jelinek  <ja...@redhat.com>

            PR c++/106001
            * typeck.cc (build_x_shufflevector): Use fold_non_dependent_expr
            instead of maybe_constant_value.

            * g++.dg/ext/builtin-shufflevector-4.C: New test.

    (cherry picked from commit a284fadcce8ef443cc3cc047a8017745efb51758)

Reply via email to