[Bug c++/44362] Bogus set-but-not-used warning

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Jun 4 18:43:00 GMT 2010



------- Comment #7 from jakub at gcc dot gnu dot org  2010-06-04 18:43 -------
Subject: Bug 44362

Author: jakub
Date: Fri Jun  4 18:42:42 2010
New Revision: 160289

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160289
Log:
        PR c++/44362
        * call.c (build_conditional_expr): If both arg2 and arg3 are lvalues
        with the same type, call mark_lvalue_use on both.

        * c-c++-common/Wunused-var-10.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/Wunused-var-10.c
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44362



More information about the Gcc-bugs mailing list