]> gcc.gnu.org Git - gcc.git/commit
c++: Implement CWG 2654 - Un-deprecation of compound volatile assignments
authorJakub Jelinek <jakub@redhat.com>
Wed, 16 Nov 2022 09:23:22 +0000 (10:23 +0100)
committerJakub Jelinek <jakub@redhat.com>
Wed, 16 Nov 2022 09:23:22 +0000 (10:23 +0100)
commit136029059686fed2d99c755baf35f98553fc0232
treec285d86a0438a319be1d6e541b471ac6c2c3a494
parentd59858f6ee7f356f27ccc2d29129826781f9483f
c++: Implement CWG 2654 - Un-deprecation of compound volatile assignments

The following patch implements CWG 2654.

2022-11-16  Jakub Jelinek  <jakub@redhat.com>

* typeck.cc (cp_build_modify_expr): Implement CWG 2654
- Un-deprecation of compound volatile assignments.  Remove
-Wvolatile warning about compound volatile assignments.

* g++.dg/cpp2a/volatile1.C (fn2, fn3, racoon): Adjust expected
diagnostics.
* g++.dg/cpp2a/volatile3.C (fn2, fn3, racoon): Likewise.
* g++.dg/cpp2a/volatile5.C (f): Likewise.
* g++.dg/ext/vector25.C (foo): Don't expect a warning.
* g++.dg/cpp1y/new1.C (test_unused): Likewise.
gcc/cp/typeck.cc
gcc/testsuite/g++.dg/cpp1y/new1.C
gcc/testsuite/g++.dg/cpp2a/volatile1.C
gcc/testsuite/g++.dg/cpp2a/volatile3.C
gcc/testsuite/g++.dg/cpp2a/volatile5.C
gcc/testsuite/g++.dg/ext/vector25.C
This page took 0.075298 seconds and 5 git commands to generate.