public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/22233] New: [3.4/4.0/4.1 regression] ICE with wrong number of template parameters
@ 2005-06-29 14:09 reichelt at gcc dot gnu dot org
2005-06-29 15:07 ` [Bug c++/22233] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-06-29 14:09 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet causes an ICE since GCC 3.3:
==============================================
template<int> struct A
{
void foo();
};
template<int N, char> void A<N>::foo() {}
A<0> a;
==============================================
bug.cc:6: error: got 2 template parameters for `void A<<anonymous> >::foo()'
bug.cc:6: error: but 1 required
bug.cc: In instantiation of `A<0>':
bug.cc:8: instantiated from here
bug.cc:6: internal compiler error: tree check: accessed elt 2 of tree_vec with
1 elts in tsubst, at cp/pt.c:6707
Please submit a full bug report, [etc.]
--
Summary: [3.4/4.0/4.1 regression] ICE with wrong number of
template parameters
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored, ice-
checking
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22233
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/22233] [3.4/4.0/4.1 regression] ICE with wrong number of template parameters
2005-06-29 14:09 [Bug c++/22233] New: [3.4/4.0/4.1 regression] ICE with wrong number of template parameters reichelt at gcc dot gnu dot org
@ 2005-06-29 15:07 ` pinskia at gcc dot gnu dot org
2005-08-17 20:26 ` reichelt at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-29 15:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-29 15:07 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Known to fail| |3.4.0 4.0.0 4.1.0
Known to work| |3.3.3
Last reconfirmed|0000-00-00 00:00:00 |2005-06-29 15:07:33
date| |
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22233
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/22233] [3.4/4.0/4.1 regression] ICE with wrong number of template parameters
2005-06-29 14:09 [Bug c++/22233] New: [3.4/4.0/4.1 regression] ICE with wrong number of template parameters reichelt at gcc dot gnu dot org
2005-06-29 15:07 ` [Bug c++/22233] " pinskia at gcc dot gnu dot org
@ 2005-08-17 20:26 ` reichelt at gcc dot gnu dot org
2005-08-22 9:55 ` cvs-commit at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-08-17 20:26 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |reichelt at gcc dot gnu dot
|dot org |org
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2005-
| |08/msg01052.html
Status|NEW |ASSIGNED
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22233
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/22233] [3.4/4.0/4.1 regression] ICE with wrong number of template parameters
2005-06-29 14:09 [Bug c++/22233] New: [3.4/4.0/4.1 regression] ICE with wrong number of template parameters reichelt at gcc dot gnu dot org
2005-06-29 15:07 ` [Bug c++/22233] " pinskia at gcc dot gnu dot org
2005-08-17 20:26 ` reichelt at gcc dot gnu dot org
@ 2005-08-22 9:55 ` cvs-commit at gcc dot gnu dot org
2005-08-22 10:05 ` cvs-commit at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-22 9:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-22 09:48 -------
Subject: Bug 22233
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: reichelt@gcc.gnu.org 2005-08-22 09:48:26
Modified files:
gcc/cp : ChangeLog pt.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/template: param1.C
Log message:
PR c++/22233
* pt.c (push_template_decl_real): Return error_mark_node if the
number of template parameters does not match previous definition.
* g++.dg/template/param1.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4853&r2=1.4854
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.1023&r2=1.1024
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5946&r2=1.5947
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/param1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22233
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/22233] [3.4/4.0/4.1 regression] ICE with wrong number of template parameters
2005-06-29 14:09 [Bug c++/22233] New: [3.4/4.0/4.1 regression] ICE with wrong number of template parameters reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-08-22 9:55 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-22 10:05 ` cvs-commit at gcc dot gnu dot org
2005-08-22 11:21 ` [Bug c++/22233] [3.4 " reichelt at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-22 10:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-22 09:55 -------
Subject: Bug 22233
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: reichelt@gcc.gnu.org 2005-08-22 09:54:43
Modified files:
gcc/cp : ChangeLog pt.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/template: param1.C
Log message:
PR c++/22233
* pt.c (push_template_decl_real): Return error_mark_node if the
number of template parameters does not match previous definition.
* g++.dg/template/param1.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.78&r2=1.4648.2.79
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.978.2.16&r2=1.978.2.17
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.343&r2=1.5084.2.344
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/param1.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22233
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/22233] [3.4 regression] ICE with wrong number of template parameters
2005-06-29 14:09 [Bug c++/22233] New: [3.4/4.0/4.1 regression] ICE with wrong number of template parameters reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-08-22 10:05 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-22 11:21 ` reichelt at gcc dot gnu dot org
2005-08-24 5:38 ` reichelt at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-08-22 11:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-08-22 11:17 -------
Fixed on mainline and 4.0 branch.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[3.4/4.0/4.1 regression] ICE|[3.4 regression] ICE with
|with wrong number of |wrong number of template
|template parameters |parameters
Target Milestone|4.0.2 |3.4.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22233
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/22233] [3.4 regression] ICE with wrong number of template parameters
2005-06-29 14:09 [Bug c++/22233] New: [3.4/4.0/4.1 regression] ICE with wrong number of template parameters reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-08-22 11:21 ` [Bug c++/22233] [3.4 " reichelt at gcc dot gnu dot org
@ 2005-08-24 5:38 ` reichelt at gcc dot gnu dot org
2005-09-02 11:21 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-08-24 5:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-08-24 05:37 -------
Modified patch for the 3.4 branch posted.
--
What |Removed |Added
----------------------------------------------------------------------------
URL|http://gcc.gnu.org/ml/gcc- |http://gcc.gnu.org/ml/gcc-
|patches/2005- |patches/2005-
|08/msg01052.html |08/msg01329.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22233
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/22233] [3.4 regression] ICE with wrong number of template parameters
2005-06-29 14:09 [Bug c++/22233] New: [3.4/4.0/4.1 regression] ICE with wrong number of template parameters reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2005-08-24 5:38 ` reichelt at gcc dot gnu dot org
@ 2005-09-02 11:21 ` cvs-commit at gcc dot gnu dot org
2005-09-02 11:22 ` reichelt at gcc dot gnu dot org
2005-09-02 11:23 ` reichelt at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-02 11:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-02 11:20 -------
Subject: Bug 22233
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: reichelt@gcc.gnu.org 2005-09-02 11:20:22
Modified files:
gcc/cp : ChangeLog decl.c pt.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/template: param1.C
Log message:
PR c++/22233
* pt.c (push_template_decl_real): Return error_mark_node if the
number of template parameters does not match previous definition.
* decl.c (start_function): Handle error_mark_node returned by
push_template_decl.
* g++.dg/template/param1.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.237&r2=1.3892.2.238
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.1174.2.38&r2=1.1174.2.39
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.816.2.58&r2=1.816.2.59
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.429&r2=1.3389.2.430
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/param1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.8.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22233
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/22233] [3.4 regression] ICE with wrong number of template parameters
2005-06-29 14:09 [Bug c++/22233] New: [3.4/4.0/4.1 regression] ICE with wrong number of template parameters reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2005-09-02 11:21 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-02 11:22 ` reichelt at gcc dot gnu dot org
2005-09-02 11:23 ` reichelt at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-09-02 11:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-09-02 11:21 -------
Fixed also on the 3.4 branch.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22233
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/22233] [3.4 regression] ICE with wrong number of template parameters
2005-06-29 14:09 [Bug c++/22233] New: [3.4/4.0/4.1 regression] ICE with wrong number of template parameters reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2005-09-02 11:22 ` reichelt at gcc dot gnu dot org
@ 2005-09-02 11:23 ` reichelt at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-09-02 11:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-09-02 11:23 -------
Btw, this was approved for the 3.4 branch by Gaby in private mail.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22233
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-09-02 11:23 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-29 14:09 [Bug c++/22233] New: [3.4/4.0/4.1 regression] ICE with wrong number of template parameters reichelt at gcc dot gnu dot org
2005-06-29 15:07 ` [Bug c++/22233] " pinskia at gcc dot gnu dot org
2005-08-17 20:26 ` reichelt at gcc dot gnu dot org
2005-08-22 9:55 ` cvs-commit at gcc dot gnu dot org
2005-08-22 10:05 ` cvs-commit at gcc dot gnu dot org
2005-08-22 11:21 ` [Bug c++/22233] [3.4 " reichelt at gcc dot gnu dot org
2005-08-24 5:38 ` reichelt at gcc dot gnu dot org
2005-09-02 11:21 ` cvs-commit at gcc dot gnu dot org
2005-09-02 11:22 ` reichelt at gcc dot gnu dot org
2005-09-02 11:23 ` reichelt at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).