This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77585] g++ incorrectly decides that member function is called without object in generic lambda
- From: "nathan at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 Dec 2016 19:50:57 +0000
- Subject: [Bug c++/77585] g++ incorrectly decides that member function is called without object in generic lambda
- Auto-submitted: auto-generated
- References: <bug-77585-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77585
--- Comment #3 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Thu Dec 15 19:50:25 2016
New Revision: 243723
URL: https://gcc.gnu.org/viewcvs?rev=243723&root=gcc&view=rev
Log:
PR c++/77585
* pt.c (instantiate_decl): Push to class scope lambda resides
within when instantiating a generic lambda function.
PR c++/77585
* g++.dg/cpp1y/pr77585.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/pr77585.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog