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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jason Merrill
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:79663c962588e8c033ff39be39e938e2cc866e12

commit r11-8705-g79663c962588e8c033ff39be39e938e2cc866e12
Author: Jason Merrill <ja...@redhat.com>
Date:   Wed Jul 7 17:57:40 2021 -0400

    Revert "c++: Improve init handling"

    Apparently looking through these codes means that in a template, we end up
    feeding a TARGET_EXPR to fold_non_dependent_expr, which should never
    happen.  This is a broader issue, but for now let's just revert the change.

    This reverts commit d9288bd28e24c755a7216311ee5247e7c88270a6.

            PR c++/101072

    gcc/cp/ChangeLog:

            * decl.c (check_initializer): Don't look through STMT_EXPR and
            BIND_EXPR.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/constexpr-empty14.C: Add -fno-elide-constructors.

Reply via email to