re PR c++/44361 (-Wunused-but-set-variable vs. explicit void cast)
authorJakub Jelinek <jakub@gcc.gnu.org>
Wed, 2 Jun 2010 19:57:08 +0000 (21:57 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 2 Jun 2010 19:57:08 +0000 (21:57 +0200)
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

gcc/cp/ChangeLog

index b09d7e9d0d7b923bad264bcfeb8be93e7d2b7822..48a4613b4771641174fe643a58ebdbfbec7a0108 100644 (file)
@@ -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,