class.c (warn_hidden): Don't barf on non-functions.
authorNathan Sidwell <nathan@acm.org>
Wed, 6 Sep 2017 13:19:49 +0000 (13:19 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 6 Sep 2017 13:19:49 +0000 (13:19 +0000)
commit940ab2e08e241437c176aad1ad5bf2a2a2849809
treee704b87567b5e67635158fea46dfe73c33885d68
parent1887fb461b2c370aeeedaba95b503fde9b2c70f9
class.c (warn_hidden): Don't barf on non-functions.

* class.c (warn_hidden): Don't barf on non-functions.
* decl2.c (check_classfn): Likewise.  Check template match earlier.

From-SVN: r251795
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/decl2.c