re PR c++/80176 (cannot bind reference to static member function using object access...
authorJakub Jelinek <jakub@redhat.com>
Mon, 10 Apr 2017 20:49:11 +0000 (22:49 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 10 Apr 2017 20:49:11 +0000 (22:49 +0200)
commitb447b28c5e434eb949e30985a7c2d49f6aa592fe
tree942477203dd8b4098eb50cb3c29b741ccb1724c1
parent3bbd6768bd4f185afd48319b0ce0c0875d62bc6a
re PR c++/80176 (cannot bind reference to static member function using object access expression)

PR c++/80176
* tree.c (lvalue_kind): For COMPONENT_REF with BASELINK second
operand, if it is a static member function, recurse on the
BASELINK.

* g++.dg/init/ref23.C: New test.

From-SVN: r246825
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/ref23.C [new file with mode: 0644]