This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53619] [4.8 regression] [C++11] wrong capture of "this" in lambda in case of multiple inheritance
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 03 Jul 2012 05:03:45 +0000
- Subject: [Bug c++/53619] [4.8 regression] [C++11] wrong capture of "this" in lambda in case of multiple inheritance
- Auto-submitted: auto-generated
- References: <bug-53619-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53619
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-03 05:03:45 UTC ---
Author: jason
Date: Tue Jul 3 05:03:34 2012
New Revision: 189191
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189191
Log:
PR c++/53619
* pt.c (in_template_function): New.
* cp-tree.h: Declare it.
* class.c (build_base_path, resolves_to_fixed_type_p): Use it.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this5.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog