mirror of git://gcc.gnu.org/git/gcc.git
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:
parent
1c6f4a147d
commit
3d17be83c1
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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>&);
|
||||
};
|
||||
Loading…
Reference in New Issue