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
This commit is contained in:
Jason Merrill 2015-03-17 13:38:25 -04:00 committed by Jason Merrill
parent 1c6f4a147d
commit 3d17be83c1
3 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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>
DR 1688

View File

@ -14051,6 +14051,8 @@ cp_parser_template_name (cp_parser* parser,
/*ambiguous_decls=*/NULL,
token->location);
decl = strip_using_decl (decl);
/* If DECL is a template, then the name was a template-name. */
if (TREE_CODE (decl) == TEMPLATE_DECL)
{

View File

@ -0,0 +1,15 @@
// PR c++/65061
struct B
{
template<typename T>
struct S {};
};
struct D : B
{
using B::S;
template<typename T>
void doIt(/*struct*/ S<T>&);
};