------- Comment #3 from jakub at gcc dot gnu dot org 2010-07-02 20:22 ------- Subject: Bug 44780
Author: jakub Date: Fri Jul 2 20:22:32 2010 New Revision: 161742 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161742 Log: PR c++/44780 * typeck.c (convert_for_assignment): When converting a convertible vector type or objc++ types, call mark_rvalue_use. * typeck2.c (build_m_component_ref): Use return values from mark_rvalue_use or mark_lvalue_use. * class.c (build_base_path): Likewise. * call.c (build_conditional_expr): Likewise. * c-c++-common/Wunused-var-12.c: New test. Added: trunk/gcc/testsuite/c-c++-common/Wunused-var-12.c Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c trunk/gcc/cp/class.c trunk/gcc/cp/typeck.c trunk/gcc/cp/typeck2.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44780