re PR c++/61945 (tree check fail with -Woverloaded-virtual)
authorMarek Polacek <polacek@redhat.com>
Thu, 25 Sep 2014 12:56:57 +0000 (12:56 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 25 Sep 2014 12:56:57 +0000 (12:56 +0000)
commit6597738a3a5bb21cab76d013a3c6c3c0bb0b3d34
treefaf87d43de03a347bba4129126e55d51e94d08ea
parentc5b2614754a2c8fc3e03048d56fe328446aab972
re PR c++/61945 (tree check fail with -Woverloaded-virtual)

PR c++/61945
* class.c (warn_hidden): Check for FUNCTION_DECL.

* g++.dg/warn/pr61945.C: New test.

From-SVN: r215597
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/pr61945.C [new file with mode: 0644]