diff options
author | Jason Merrill <jason@redhat.com> | 2018-03-04 00:32:39 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2018-03-04 00:32:39 -0500 |
commit | 38946ea192bf484cc854dd407d34cce4de6b698b (patch) | |
tree | bad34dde68c7e611a09fd97a72d1265ffde0da12 /gcc/cp/cvt.c | |
parent | ac80378f4a966aa6b5490cf087380c7324681997 (diff) | |
download | gcc-38946ea192bf484cc854dd407d34cce4de6b698b.zip gcc-38946ea192bf484cc854dd407d34cce4de6b698b.tar.gz gcc-38946ea192bf484cc854dd407d34cce4de6b698b.tar.bz2 |
PR c++/84686 - missing volatile loads.
* cvt.c (convert_to_void): Call maybe_undo_parenthesized_ref.
From-SVN: r258231
Diffstat (limited to 'gcc/cp/cvt.c')
-rw-r--r-- | gcc/cp/cvt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c index f5da08b..40e7576 100644 --- a/gcc/cp/cvt.c +++ b/gcc/cp/cvt.c @@ -1063,6 +1063,8 @@ convert_to_void (tree expr, impl_conv_void implicit, tsubst_flags_t complain) || TREE_TYPE (expr) == error_mark_node) return error_mark_node; + expr = maybe_undo_parenthesized_ref (expr); + expr = mark_discarded_use (expr); if (implicit == ICV_CAST) /* An explicit cast to void avoids all -Wunused-but-set* warnings. */ |