PR c++/65061
* parser.c (cp_parser_template_name): Call strip_using_decl.
From-SVN: r233942
+2016-03-03 Jason Merrill <jason@redhat.com>
+
+ PR c++/65061
+ * parser.c (cp_parser_template_name): Call strip_using_decl.
+
2016-02-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
Backported from mainline
/*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)
;
--- /dev/null
+// PR c++/65061
+
+struct B
+{
+ template<typename T>
+ struct S {};
+};
+
+struct D : B
+{
+ using B::S;
+
+ template<typename T>
+ void doIt(/*struct*/ S<T>&);
+};