[Bug c++/85815] [7/8/9 Regression] incorrect "invalid use of incomplete type" in a lambda on valid code
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 25 21:03:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85815
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri May 25 21:03:07 2018
New Revision: 260782
URL: https://gcc.gnu.org/viewcvs?rev=260782&root=gcc&view=rev
Log:
PR c++/85815 - reference to member of enclosing template.
* search.c (lookup_base): Use currently_open_class.
(lookup_member): Use it regardless of -fconcepts.
* parser.c (cp_parser_postfix_dot_deref_expression): Check it.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-dependent1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/cp/parser.c
trunk/gcc/cp/search.c
More information about the Gcc-bugs
mailing list