diff options
author | Jakub Jelinek <jakub@gcc.gnu.org> | 2010-06-02 21:57:08 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2010-06-02 21:57:08 +0200 |
commit | 5d588f836b767bc46d790d373704b35def731e68 (patch) | |
tree | 4853efd4a94d4728a564de6f956231d58242a8e9 /gcc | |
parent | 9fc8daccc5fe380b2398a1a62b128d352d166478 (diff) | |
download | gcc-5d588f836b767bc46d790d373704b35def731e68.zip gcc-5d588f836b767bc46d790d373704b35def731e68.tar.gz gcc-5d588f836b767bc46d790d373704b35def731e68.tar.bz2 |
re PR c++/44361 (-Wunused-but-set-variable vs. explicit void cast)
PR c++/44361
* cvt.c (convert_to_void): If implicit is NULL, call mark_rvalue_use
instead of calling mark_exp_read only when not an assignment.
From-SVN: r160188
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b09d7e9..48a4613 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -5,10 +5,9 @@ (decl_shadowed_for_var_lookup, decl_shadowed_for_var_insert): Adjust. (init_shadowed_var_for_decl): Adjust initialization. - PR debug/44367 - * semantics.c (finalize_nrv): Don't copy DECL_ARTIFICIAL, DECL_IGNORED_P, - DECL_SOURCE_LOCATION and DECL_ABSTRACT_ORIGIN from var to result. - Set DECL_VALUE_EXPR on var. + PR c++/44361 + * cvt.c (convert_to_void): If implicit is NULL, call mark_rvalue_use + instead of calling mark_exp_read only when not an assignment. PR debug/44367 * semantics.c (finalize_nrv): Don't copy DECL_ARTIFICIAL, DECL_IGNORED_P, |