re PR c++/10200 (Weird clash with same names in different scopes)
authorJason Merrill <jason@redhat.com>
Wed, 10 Feb 2016 15:34:52 +0000 (10:34 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 10 Feb 2016 15:34:52 +0000 (10:34 -0500)
commitff2faafcf689b6c2a277dce15a3d60d80c92e493
treec89456c79620b96874951134be2fdb0acd5caa62
parent3a4219caad501437c37f8adeded65299fbbdd310
re PR c++/10200 (Weird clash with same names in different scopes)

PR c++/10200

* parser.c (cp_parser_lookup_name): When looking for a template
after . or ->, only consider class templates.
(cp_parser_postfix_dot_deref_expression): Handle the current
instantiation.  Remember a dependent object expression.
* typeck2.c (build_x_arrow): Handle the current instantiation.

From-SVN: r233277
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/typeck2.c
gcc/testsuite/g++.dg/lookup/member2.C [new file with mode: 0644]