Commit 3d17be83 by Jason Merrill Committed by Jason Merrill

re PR c++/65061 (Issue with using declaration and member class template)

	PR c++/65061
	* parser.c (cp_parser_template_name): Call strip_using_decl.

From-SVN: r221478
parent 1c6f4a14
2015-03-16 Jason Merrill <jason@redhat.com>
PR c++/65061
* parser.c (cp_parser_template_name): Call strip_using_decl.
2015-03-16 Marek Polacek <polacek@redhat.com> 2015-03-16 Marek Polacek <polacek@redhat.com>
DR 1688 DR 1688
......
...@@ -14051,6 +14051,8 @@ cp_parser_template_name (cp_parser* parser, ...@@ -14051,6 +14051,8 @@ cp_parser_template_name (cp_parser* parser,
/*ambiguous_decls=*/NULL, /*ambiguous_decls=*/NULL,
token->location); token->location);
decl = strip_using_decl (decl);
/* If DECL is a template, then the name was a template-name. */ /* If DECL is a template, then the name was a template-name. */
if (TREE_CODE (decl) == TEMPLATE_DECL) if (TREE_CODE (decl) == TEMPLATE_DECL)
{ {
......
// PR c++/65061
struct B
{
template<typename T>
struct S {};
};
struct D : B
{
using B::S;
template<typename T>
void doIt(/*struct*/ S<T>&);
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment