This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28641] [4.1/4.2 regression] ICE calling template function with invalid template parameter
- From: "lmillward at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Aug 2006 19:19:05 -0000
- Subject: [Bug c++/28641] [4.1/4.2 regression] ICE calling template function with invalid template parameter
- References: <bug-28641-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from lmillward at gcc dot gnu dot org 2006-08-10 19:19 -------
Subject: Bug 28641
Author: lmillward
Date: Thu Aug 10 19:18:37 2006
New Revision: 116068
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116068
Log:
PR c++/28594
PR c++/28637
PR c++/28638
PR c++/28639
PR c++/28640
PR c++/28641
Revert:
2006-07-28 Lee Millward <lee.millward@codesourcery.com>
PR c++/27668
PR c++/27962
* pt.c (process_template_parm) Store invalid template
parameters as error_mark_node in the paramater list.
(push_inline_template_parms_recursive): Handle invalid
template parameters.
(comp_template_parms): Likewise.
(check_default_tmpl_args): Likewise.
(coerce_template_template_parms): Likewise.
(coerce_template_parms): Likewise.
(mangle_class_name_for_template): Likewise.
(tsubst_template_parms): Likewise.
* error.c (dump_template_argument_list): Likewise.
* g++.dg/template/crash54.C: New test.
* g++.dg/template/nontype16.C: New test.
* g++.dg/template/nontype5.C: Adjust error markers
Removed:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/crash54.C
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/nontype16.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/error.c
branches/gcc-4_1-branch/gcc/cp/pt.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/nontype5.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28641