PR c++/61945
commitfd620c07283fd6366d248e1630895373e34cda9e
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Sep 2014 12:56:57 +0000 (25 12:56 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Sep 2014 12:56:57 +0000 (25 12:56 +0000)
treefaf87d43de03a347bba4129126e55d51e94d08ea
parentea7487462c7e2785250a74d015d45acd58db71ed
PR c++/61945
* class.c (warn_hidden): Check for FUNCTION_DECL.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215597 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/pr61945.C [new file with mode: 0644]