PR c++/85815 - reference to member of enclosing template.
authorJason Merrill <jason@redhat.com>
Fri, 25 May 2018 21:03:07 +0000 (17:03 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 25 May 2018 21:03:07 +0000 (17:03 -0400)
commitd9338471b91bbe6e1579088c7d40ab257ac3764d
tree97053fdc89d47552fdc5cc2938a2c33fcea48fe7
parent99dcfb5fc184d4eeb2753ae9475bda4d58266161
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.

From-SVN: r260782
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/parser.c
gcc/cp/search.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-dependent1.C [new file with mode: 0644]