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

--- Comment #7 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:9ab083eb8a96b7f8baf6fe632d03aa496017e456

commit r11-10647-g9ab083eb8a96b7f8baf6fe632d03aa496017e456
Author: Jason Merrill <ja...@redhat.com>
Date:   Thu Mar 23 15:57:39 2023 -0400

    c-family: -Wsequence-point and COMPONENT_REF [PR107163]

    The patch for PR91415 fixed -Wsequence-point to treat shifts and ARRAY_REF
    as sequenced in C++17, and COMPONENT_REF as well.  But this is unnecessary
    for COMPONENT_REF, since the RHS is just a FIELD_DECL with no actual
    evaluation, and in this testcase handling COMPONENT_REF as sequenced blows
    up fast in a deep inheritance tree.  Instead, look through it.

            PR c++/107163

    gcc/c-family/ChangeLog:

            * c-common.c (verify_tree): Don't use sequenced handling
            for COMPONENT_REF.

    gcc/testsuite/ChangeLog:

            * g++.dg/warn/Wsequence-point-5.C: New test.

Reply via email to