This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/85815] [7/8/9 Regression] incorrect "invalid use of incomplete type" in a lambda on valid code


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]