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++/79746] [7 Regression] Confusing -Wunused-but-set-parameter warning with virtual inheritance


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79746

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Mar  1 08:35:55 2017
New Revision: 245802

URL: https://gcc.gnu.org/viewcvs?rev=245802&root=gcc&view=rev
Log:
        PR c++/79746
        * init.c (emit_mem_initializers): When not constructing vbases of
        abstract classes, mark arguments as read for
        -Wunused-but-set-parameter.

        * g++.dg/warn/Wunused-parm-9.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/warn/Wunused-parm-9.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/init.c
    trunk/gcc/testsuite/ChangeLog

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