public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31446] [4.2/4.3 regression] ICE with invalid template parameter
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
@ 2007-04-02 20:41 ` reichelt at gcc dot gnu dot org
2007-04-15 22:14 ` mmitchel at gcc dot gnu dot org
` (16 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-04-02 20:41 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter
@ 2007-04-02 20:41 reichelt at gcc dot gnu dot org
2007-04-02 20:41 ` [Bug c++/31446] " reichelt at gcc dot gnu dot org
` (17 more replies)
0 siblings, 18 replies; 19+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-04-02 20:41 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE on mainline and 4.2 branch:
===========================================================
template<void> struct A
{
template<int> friend void foo();
};
void bar()
{
foo<0>();
}
===========================================================
bug.cc:1: error: 'void' is not a valid type for a template constant parameter
bug.cc: In function 'void bar()':
bug.cc:8: internal compiler error: in retrieve_specialization, at cp/pt.c:856
Please submit a full bug report, [etc.]
--
Summary: [4.2/4.3 regression] ICE with invalid template parameter
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/31446] [4.2/4.3 regression] ICE with invalid template parameter
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
2007-04-02 20:41 ` [Bug c++/31446] " reichelt at gcc dot gnu dot org
@ 2007-04-15 22:14 ` mmitchel at gcc dot gnu dot org
2007-05-14 21:31 ` mmitchel at gcc dot gnu dot org
` (15 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-04-15 22:14 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/31446] [4.2/4.3 regression] ICE with invalid template parameter
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
2007-04-02 20:41 ` [Bug c++/31446] " reichelt at gcc dot gnu dot org
2007-04-15 22:14 ` mmitchel at gcc dot gnu dot org
@ 2007-05-14 21:31 ` mmitchel at gcc dot gnu dot org
2007-07-20 3:50 ` mmitchel at gcc dot gnu dot org
` (14 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-05-14 21:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from mmitchel at gcc dot gnu dot org 2007-05-14 22:27 -------
Will not be fixed in 4.2.0; retargeting at 4.2.1.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.0 |4.2.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/31446] [4.2/4.3 regression] ICE with invalid template parameter
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-05-14 21:31 ` mmitchel at gcc dot gnu dot org
@ 2007-07-20 3:50 ` mmitchel at gcc dot gnu dot org
2007-09-19 18:00 ` pcarlini at suse dot de
` (13 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-07-20 3:50 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.1 |4.2.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/31446] [4.2/4.3 regression] ICE with invalid template parameter
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-07-20 3:50 ` mmitchel at gcc dot gnu dot org
@ 2007-09-19 18:00 ` pcarlini at suse dot de
2007-09-19 23:20 ` janis at gcc dot gnu dot org
` (12 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pcarlini at suse dot de @ 2007-09-19 18:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pcarlini at suse dot de 2007-09-19 17:59 -------
Hi again... A regression hunt would be useful for this one too...
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |janis at gcc dot gnu dot
| |org, pcarlini at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/31446] [4.2/4.3 regression] ICE with invalid template parameter
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2007-09-19 18:00 ` pcarlini at suse dot de
@ 2007-09-19 23:20 ` janis at gcc dot gnu dot org
2007-09-20 9:34 ` pcarlini at suse dot de
` (11 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: janis at gcc dot gnu dot org @ 2007-09-19 23:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from janis at gcc dot gnu dot org 2007-09-19 23:20 -------
A regression hunt on powerpc-linux using the submitter's test case identified
the following patch:
http://gcc.gnu.org/viewcvs?view=rev&rev=115800
r115800 | lmillward | 2006-07-28 17:01:19 +0000 (Fri, 28 Jul 2006)
(By the way, I think regression hunts are fun and don't mind doing them. They
usually take very little effort.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/31446] [4.2/4.3 regression] ICE with invalid template parameter
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2007-09-19 23:20 ` janis at gcc dot gnu dot org
@ 2007-09-20 9:34 ` pcarlini at suse dot de
2007-09-26 18:24 ` pcarlini at suse dot de
` (10 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pcarlini at suse dot de @ 2007-09-20 9:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pcarlini at suse dot de 2007-09-20 09:34 -------
Great Janis, I will ask your help more often: hunts are very helpful for
quickly fixing recent bugs!
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-09-20 09:34:45
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/31446] [4.2/4.3 regression] ICE with invalid template parameter
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2007-09-20 9:34 ` pcarlini at suse dot de
@ 2007-09-26 18:24 ` pcarlini at suse dot de
2007-09-28 15:40 ` pcarlini at suse dot de
` (9 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pcarlini at suse dot de @ 2007-09-26 18:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pcarlini at suse dot de 2007-09-26 18:24 -------
Seems due to a trivial thinko in the changes for 27668, 27962, etc..
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/31446] [4.2/4.3 regression] ICE with invalid template parameter
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2007-09-26 18:24 ` pcarlini at suse dot de
@ 2007-09-28 15:40 ` pcarlini at suse dot de
2007-09-30 15:53 ` pcarlini at suse dot de
` (8 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pcarlini at suse dot de @ 2007-09-28 15:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pcarlini at suse dot de 2007-09-28 15:40 -------
Patch at:
http://gcc.gnu.org/ml/gcc-patches/2007-09/msg01933.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/31446] [4.2/4.3 regression] ICE with invalid template parameter
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
` (8 preceding siblings ...)
2007-09-28 15:40 ` pcarlini at suse dot de
@ 2007-09-30 15:53 ` pcarlini at suse dot de
2007-10-01 0:52 ` pcarlini at suse dot de
` (7 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pcarlini at suse dot de @ 2007-09-30 15:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from pcarlini at suse dot de 2007-09-30 15:52 -------
NB: the patch also fixes PR30299
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/31446] [4.2/4.3 regression] ICE with invalid template parameter
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
` (9 preceding siblings ...)
2007-09-30 15:53 ` pcarlini at suse dot de
@ 2007-10-01 0:52 ` pcarlini at suse dot de
2007-10-09 19:28 ` mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pcarlini at suse dot de @ 2007-10-01 0:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pcarlini at suse dot de 2007-10-01 00:52 -------
NB: the patch also fixes PR28639
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/31446] [4.2/4.3 regression] ICE with invalid template parameter
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
` (10 preceding siblings ...)
2007-10-01 0:52 ` pcarlini at suse dot de
@ 2007-10-09 19:28 ` mmitchel at gcc dot gnu dot org
2007-10-16 22:22 ` paolo at gcc dot gnu dot org
` (5 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-10-09 19:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from mmitchel at gcc dot gnu dot org 2007-10-09 19:22 -------
Change target milestone to 4.2.3, as 4.2.2 has been released.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.2 |4.2.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/31446] [4.2/4.3 regression] ICE with invalid template parameter
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
` (11 preceding siblings ...)
2007-10-09 19:28 ` mmitchel at gcc dot gnu dot org
@ 2007-10-16 22:22 ` paolo at gcc dot gnu dot org
2007-10-16 22:24 ` [Bug c++/31446] [4.2 " pcarlini at suse dot de
` (4 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: paolo at gcc dot gnu dot org @ 2007-10-16 22:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from paolo at gcc dot gnu dot org 2007-10-16 22:22 -------
Subject: Bug 31446
Author: paolo
Date: Tue Oct 16 22:21:59 2007
New Revision: 129391
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129391
Log:
/cp
2007-10-16 Paolo Carlini <pcarlini@suse.de>
PR c++/31446
* pt.c (current_template_args): Do not change TREE_LIST elements
with a TREE_VALUE of error_mark_node.
/testsuite
2007-10-16 Paolo Carlini <pcarlini@suse.de>
PR c++/31446
* g++.dg/template/void11.C: New.
* g++.dg/template/void2.C: Adjust error markers.
* g++.dg/template/void10.C: Likewise.
* g++.dg/template/crash55.C: Likewise.
Added:
trunk/gcc/testsuite/g++.dg/template/void11.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/template/crash55.C
trunk/gcc/testsuite/g++.dg/template/void10.C
trunk/gcc/testsuite/g++.dg/template/void2.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/31446] [4.2 regression] ICE with invalid template parameter
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
` (12 preceding siblings ...)
2007-10-16 22:22 ` paolo at gcc dot gnu dot org
@ 2007-10-16 22:24 ` pcarlini at suse dot de
2008-02-01 16:57 ` jsm28 at gcc dot gnu dot org
` (3 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pcarlini at suse dot de @ 2007-10-16 22:24 UTC (permalink / raw)
To: gcc-bugs
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|pcarlini at suse dot de |unassigned at gcc dot gnu
| |dot org
Status|ASSIGNED |NEW
Summary|[4.2/4.3 regression] ICE |[4.2 regression] ICE with
|with invalid template |invalid template parameter
|parameter |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/31446] [4.2 regression] ICE with invalid template parameter
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
` (13 preceding siblings ...)
2007-10-16 22:24 ` [Bug c++/31446] [4.2 " pcarlini at suse dot de
@ 2008-02-01 16:57 ` jsm28 at gcc dot gnu dot org
2008-03-16 17:20 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-02-01 16:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from jsm28 at gcc dot gnu dot org 2008-02-01 16:53 -------
4.2.3 is being released now, changing milestones of open bugs to 4.2.4.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.3 |4.2.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/31446] [4.2 regression] ICE with invalid template parameter
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
` (14 preceding siblings ...)
2008-02-01 16:57 ` jsm28 at gcc dot gnu dot org
@ 2008-03-16 17:20 ` rguenth at gcc dot gnu dot org
2008-05-19 20:47 ` jsm28 at gcc dot gnu dot org
2009-03-30 21:44 ` jsm28 at gcc dot gnu dot org
17 siblings, 0 replies; 19+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-03-16 17:20 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.3.0
Priority|P4 |P5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/31446] [4.2 regression] ICE with invalid template parameter
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
` (15 preceding siblings ...)
2008-03-16 17:20 ` rguenth at gcc dot gnu dot org
@ 2008-05-19 20:47 ` jsm28 at gcc dot gnu dot org
2009-03-30 21:44 ` jsm28 at gcc dot gnu dot org
17 siblings, 0 replies; 19+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-05-19 20:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from jsm28 at gcc dot gnu dot org 2008-05-19 20:23 -------
4.2.4 is being released, changing milestones to 4.2.5.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.4 |4.2.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/31446] [4.2 regression] ICE with invalid template parameter
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
` (16 preceding siblings ...)
2008-05-19 20:47 ` jsm28 at gcc dot gnu dot org
@ 2009-03-30 21:44 ` jsm28 at gcc dot gnu dot org
17 siblings, 0 replies; 19+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-30 21:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from jsm28 at gcc dot gnu dot org 2009-03-30 21:43 -------
Closing 4.2 branch, fixed in 4.3.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Known to fail| |4.2.5
Resolution| |FIXED
Target Milestone|4.2.5 |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2009-03-30 21:44 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
2007-04-02 20:41 ` [Bug c++/31446] " reichelt at gcc dot gnu dot org
2007-04-15 22:14 ` mmitchel at gcc dot gnu dot org
2007-05-14 21:31 ` mmitchel at gcc dot gnu dot org
2007-07-20 3:50 ` mmitchel at gcc dot gnu dot org
2007-09-19 18:00 ` pcarlini at suse dot de
2007-09-19 23:20 ` janis at gcc dot gnu dot org
2007-09-20 9:34 ` pcarlini at suse dot de
2007-09-26 18:24 ` pcarlini at suse dot de
2007-09-28 15:40 ` pcarlini at suse dot de
2007-09-30 15:53 ` pcarlini at suse dot de
2007-10-01 0:52 ` pcarlini at suse dot de
2007-10-09 19:28 ` mmitchel at gcc dot gnu dot org
2007-10-16 22:22 ` paolo at gcc dot gnu dot org
2007-10-16 22:24 ` [Bug c++/31446] [4.2 " pcarlini at suse dot de
2008-02-01 16:57 ` jsm28 at gcc dot gnu dot org
2008-03-16 17:20 ` rguenth at gcc dot gnu dot org
2008-05-19 20:47 ` jsm28 at gcc dot gnu dot org
2009-03-30 21:44 ` jsm28 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).