[PATCH] Fix PR c++/30044
authorPatrick Palka <ppalka@gcc.gnu.org>
Tue, 23 Jun 2015 23:41:51 +0000 (23:41 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Tue, 23 Jun 2015 23:41:51 +0000 (23:41 +0000)
commit1a8f8908d21fe40629592c20a8c5c99a44dc8be0
tree1e64ec2e526bcd62927cd85e0ffea04f1d1f00de
parent8289f048f0d5e6b7fa39857f34aacad816eede43
[PATCH] Fix PR c++/30044

gcc/cp/ChangeLog:

* parser.c (cp_parser_template_parameter_list): Update
current_template_parms right after processing a paramater.
* pt.c (template_parms_to_args): Remove obsolete hack for
giving template template arguments the proper level.
(check_default_tmpl_args): Account for tested template
parameter_lists.
(splite_late_return_type): Remove obsolete hack for giving
template template arguments the proper level.

gcc/testsuite/ChangeLog

* g++.dg/cpp0x/auto45.C: New test.
* g++.dg/template/pr30044.C: New test.
* g++.dg/template/crash83.C: Accept any error string.
* g++.dg/cpp0x/variadic18.C: Adjust to not shadow template
parameters.
* g++.dg/cpp0x/variadic18.C: Likewise
* g++.dg/template/canon-type-13.C: Likewise.
* g++.old-deja/g++.pt/ttp42.C: Likewise.

From-SVN: r224859
12 files changed:
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/auto45.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/variadic18.C
gcc/testsuite/g++.dg/cpp0x/variadic19.C
gcc/testsuite/g++.dg/template/canon-type-13.C
gcc/testsuite/g++.dg/template/crash83.C
gcc/testsuite/g++.dg/template/pr30044.C [new file with mode: 0644]
gcc/testsuite/g++.dg/torture/20070621-1.C
gcc/testsuite/g++.old-deja/g++.pt/ttp42.C