diff options
author | Patrick Palka <ppalka@redhat.com> | 2023-11-29 16:42:39 -0500 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2023-11-29 16:42:39 -0500 |
commit | 220fe41fd4085e91a49e62dd815628ec4883a4ea (patch) | |
tree | 1ff5000bf39cd5717ccdb59c507f4f399ecc6280 /gcc/highlev-plugin-common.h | |
parent | 72e212c0290b70a7a87fbec58444787f1b177847 (diff) | |
download | gcc-220fe41fd4085e91a49e62dd815628ec4883a4ea.zip gcc-220fe41fd4085e91a49e62dd815628ec4883a4ea.tar.gz gcc-220fe41fd4085e91a49e62dd815628ec4883a4ea.tar.bz2 |
c++: bogus -Wparentheses warning [PR112765]
We need to consistently look through implicit INDIRECT_REF when
setting/checking for -Wparentheses warning suppression. In passing
use the recently introduced STRIP_REFERENCE_REF helper some more.
PR c++/112765
gcc/cp/ChangeLog:
* pt.cc (tsubst_expr) <case MODOP_EXPR>: Look through implicit
INDIRECT_REF when propagating -Wparentheses warning suppression.
* semantics.cc (maybe_warn_unparenthesized_assignment): Replace
REFERENCE_REF_P handling with STRIP_REFERENCE_REF.
(finish_parenthesized_expr): Likewise.
gcc/testsuite/ChangeLog:
* g++.dg/warn/Wparentheses-33.C: New test.
Diffstat (limited to 'gcc/highlev-plugin-common.h')
0 files changed, 0 insertions, 0 deletions