This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/44619] [4.6 Regression] Bogus set but not used warning when using pointer to member operators



------- Comment #3 from jakub at gcc dot gnu dot org  2010-06-22 20:50 -------
Subject: Bug 44619

Author: jakub
Date: Tue Jun 22 20:50:03 2010
New Revision: 161230

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161230
Log:
        PR c++/44619
        * typeck2.c (build_m_component_ref): Call mark_lvalue_use on
        datum and mark_rvalue_use on component.

        * g++.dg/warn/Wunused-var-13.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/warn/Wunused-var-13.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck2.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]