This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80176] [5/6 Regression] cannot bind reference to static member function using object access expression
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 05 May 2017 21:53:12 +0000
- Subject: [Bug c++/80176] [5/6 Regression] cannot bind reference to static member function using object access expression
- Auto-submitted: auto-generated
- References: <bug-80176-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80176
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri May 5 21:52:40 2017
New Revision: 247698
URL: https://gcc.gnu.org/viewcvs?rev=247698&root=gcc&view=rev
Log:
Backported from mainline
2017-04-10 Jakub Jelinek <jakub@redhat.com>
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.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/init/ref23.C
Modified:
branches/gcc-6-branch/gcc/cp/ChangeLog
branches/gcc-6-branch/gcc/cp/tree.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog