This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30044] ICE in tsubst, at cp/pt.c:7359
- From: "ppalka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 23 Jun 2015 23:42:23 +0000
- Subject: [Bug c++/30044] ICE in tsubst, at cp/pt.c:7359
- Auto-submitted: auto-generated
- References: <bug-30044-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30044
--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Tue Jun 23 23:41:51 2015
New Revision: 224859
URL: https://gcc.gnu.org/viewcvs?rev=224859&root=gcc&view=rev
Log:
[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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/auto45.C
trunk/gcc/testsuite/g++.dg/template/pr30044.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/cpp0x/variadic18.C
trunk/gcc/testsuite/g++.dg/cpp0x/variadic19.C
trunk/gcc/testsuite/g++.dg/template/canon-type-13.C
trunk/gcc/testsuite/g++.dg/template/crash83.C
trunk/gcc/testsuite/g++.dg/torture/20070621-1.C
trunk/gcc/testsuite/g++.old-deja/g++.pt/ttp42.C