re PR c++/91415 (Invalid warning for C++17 sequencing of shift operator E1<<E2.)
authorJakub Jelinek <jakub@redhat.com>
Tue, 27 Aug 2019 12:37:30 +0000 (14:37 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 27 Aug 2019 12:37:30 +0000 (14:37 +0200)
commit6a07489267e55084c3d5e88b4e9591be25bf2bf6
tree5232756c208bd045ce9f230aee7a9030453bd2e7
parent6c14d008122fcee4157be79a60f8d6685869ad19
re PR c++/91415 (Invalid warning for C++17 sequencing of shift operator E1<<E2.)

PR c++/91415
* c-common.c (verify_tree): For LSHIFT_EXPR, RSHIFT_EXPR,
COMPONENT_REF and ARRAY_REF in cxx_dialect >= cxx17 mode handle it
like COMPOUND_EXPR rather than normal expression.

* g++.dg/warn/sequence-pt-4.C: New test.

From-SVN: r274952
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/sequence-pt-4.C [new file with mode: 0644]