PR c++/79508 - lookup error with member template
authorJason Merrill <jason@redhat.com>
Fri, 17 Feb 2017 22:05:18 +0000 (17:05 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 17 Feb 2017 22:05:18 +0000 (17:05 -0500)
commitcb94c7007c6375f7e6752e0426a5ea0e3f046c47
tree48e0bf87fd08ee4a5757de2c8610fa634410975a
parent7c5867495bbfce161cd0461b002f626f9339b78f
PR c++/79508 - lookup error with member template

* parser.c (cp_parser_template_name): Clear
parser->context->object_type if we aren't doing lookup.

From-SVN: r245553
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/template/memtmpl5.C [new file with mode: 0644]