public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28742] [4.2 regression] ICE with virtual destructor in invalid template class
2006-08-15 19:09 [Bug c++/28742] New: [4.2 regression] ICE with virtual destructor in invalid template class reichelt at gcc dot gnu dot org
@ 2006-08-15 19:09 ` reichelt at gcc dot gnu dot org
2006-08-20 15:16 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-15 19:09 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=28742
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28742] New: [4.2 regression] ICE with virtual destructor in invalid template class
@ 2006-08-15 19:09 reichelt at gcc dot gnu dot org
2006-08-15 19:09 ` [Bug c++/28742] " reichelt at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-15 19:09 UTC (permalink / raw)
To: gcc-bugs
The following invalid testcase triggers an ICE on mainline:
=========================================
template<void> struct A
{
A();
virtual ~A();
};
A<0> a;
=========================================
bug.cc:1: error: 'void' is not a valid type for a template constant parameter
bug.cc:3: error: templates may not be 'virtual'
bug.cc: In instantiation of 'A<<expression error> >':
bug.cc:7: instantiated from here
bug.cc:3: internal compiler error: in finish_member_declaration, at
cp/semantics.c:2243
Please submit a full bug report, [etc.]
If I remove the constructor or destructor, the ICE happens in the same
place as PR 24791.
This is probably fallout from PR 27668.
--
Summary: [4.2 regression] ICE with virtual destructor in invalid
template class
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
BugsThisDependsOn: 27668
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28742
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28742] [4.2 regression] ICE with virtual destructor in invalid template class
2006-08-15 19:09 [Bug c++/28742] New: [4.2 regression] ICE with virtual destructor in invalid template class reichelt at gcc dot gnu dot org
2006-08-15 19:09 ` [Bug c++/28742] " reichelt at gcc dot gnu dot org
@ 2006-08-20 15:16 ` rguenth at gcc dot gnu dot org
2006-08-20 22:44 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-08-20 15:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2006-08-20 15:15 -------
Confirmed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-08-20 15:15:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28742
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28742] [4.2 regression] ICE with virtual destructor in invalid template class
2006-08-15 19:09 [Bug c++/28742] New: [4.2 regression] ICE with virtual destructor in invalid template class reichelt at gcc dot gnu dot org
2006-08-15 19:09 ` [Bug c++/28742] " reichelt at gcc dot gnu dot org
2006-08-20 15:16 ` rguenth at gcc dot gnu dot org
@ 2006-08-20 22:44 ` mmitchel at gcc dot gnu dot org
2006-08-29 19:11 ` lmillward at gcc dot gnu dot org
2006-08-30 3:41 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-08-20 22:44 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=28742
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28742] [4.2 regression] ICE with virtual destructor in invalid template class
2006-08-15 19:09 [Bug c++/28742] New: [4.2 regression] ICE with virtual destructor in invalid template class reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-08-20 22:44 ` mmitchel at gcc dot gnu dot org
@ 2006-08-29 19:11 ` lmillward at gcc dot gnu dot org
2006-08-30 3:41 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-08-29 19:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from lmillward at gcc dot gnu dot org 2006-08-29 19:11 -------
This doesn't ICE for me on current mainline:
bug.cc:1: error: 'void' is not a valid type for a template constant parameter
bug.cc:3: error: templates may not be 'virtual'
bug.cc:7: error: '<type error>' is not a valid type for a template constant
parameter
bug.cc:7: error: invalid type in declaration before ';' token
Can anyone confirm that the testcase still ICE's for them?
--
lmillward at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lmillward at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28742
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28742] [4.2 regression] ICE with virtual destructor in invalid template class
2006-08-15 19:09 [Bug c++/28742] New: [4.2 regression] ICE with virtual destructor in invalid template class reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-08-29 19:11 ` lmillward at gcc dot gnu dot org
@ 2006-08-30 3:41 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-30 3:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-08-30 03:41 -------
Fixed since at least "4.2.0 20060826".
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28742
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-08-30 3:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-15 19:09 [Bug c++/28742] New: [4.2 regression] ICE with virtual destructor in invalid template class reichelt at gcc dot gnu dot org
2006-08-15 19:09 ` [Bug c++/28742] " reichelt at gcc dot gnu dot org
2006-08-20 15:16 ` rguenth at gcc dot gnu dot org
2006-08-20 22:44 ` mmitchel at gcc dot gnu dot org
2006-08-29 19:11 ` lmillward at gcc dot gnu dot org
2006-08-30 3:41 ` pinskia 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).