[PR c++/71251] check tmpl parms in template using decl
authorAlexandre Oliva <aoliva@redhat.com>
Fri, 23 Mar 2018 04:09:06 +0000 (04:09 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Fri, 23 Mar 2018 04:09:06 +0000 (04:09 +0000)
commit631270a5cedfad8267a5e7b94901035212713b61
tree1b213047c79653678507eef2f63ce198292474f4
parent5904d9d923bd86849209e55550b7876e513f4896
[PR c++/71251] check tmpl parms in template using decl

Check that template using decls have the correct number of parm lists.

for  gcc/cp/ChangeLog

PR c++/71251
* parser.c (cp_parser_alias_declaration): Call
parser_check_template_parameters.

for  gcc/testsuite/ChangeLog

PR c++/71251
* g++.dg/cpp0x/pr71251.C: New.

From-SVN: r258793
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr71251.C [new file with mode: 0644]