public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40284] New: regression? ICE (segfault) on invalid virtual dtor in template
@ 2009-05-28 19:02 poftwaresatent at gmail dot com
2009-05-28 19:03 ` [Bug c++/40284] " poftwaresatent at gmail dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: poftwaresatent at gmail dot com @ 2009-05-28 19:02 UTC (permalink / raw)
To: gcc-bugs
on Debian squeeze, Linux 2.6.26-2-amd64 #1 SMP:
The following incorrect code cause g++ to segfault on "g++ (Debian 4.3.3-3)
4.3.3" but not on "g++ (GCC) 4.1.1 20070105 (Red Hat 4.1.1-51)":
================================================
// g++ -Wall -save-temps -c bugreport0.cpp
template<typename pointer_type>
struct Registry {
pointer_type pointer;
// copy-paste error should not cause ICE
virtual ~ModuleRegistry() { delete pointer; }
};
struct ModuleRegistry: public Registry<int *> {};
================================================
compilation log:
================================================
g++ -Wall -save-temps -c bugreport0.cpp
bugreport0.cpp:8: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.3/README.Bugs> for instructions.
Compilation exited abnormally with code 1 at Thu May 28 12:03:42
================================================
--
Summary: regression? ICE (segfault) on invalid virtual dtor in
template
Product: gcc
Version: 4.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: poftwaresatent at gmail dot com
GCC build triplet: x86_64-linux-gnu
GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40284
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/40284] regression? ICE (segfault) on invalid virtual dtor in template
2009-05-28 19:02 [Bug c++/40284] New: regression? ICE (segfault) on invalid virtual dtor in template poftwaresatent at gmail dot com
@ 2009-05-28 19:03 ` poftwaresatent at gmail dot com
2009-05-28 21:01 ` jakub at gcc dot gnu dot org
2009-05-29 7:50 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: poftwaresatent at gmail dot com @ 2009-05-28 19:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from poftwaresatent at gmail dot com 2009-05-28 19:03 -------
Created an attachment (id=17925)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17925&action=view)
output from -save-temps
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40284
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/40284] regression? ICE (segfault) on invalid virtual dtor in template
2009-05-28 19:02 [Bug c++/40284] New: regression? ICE (segfault) on invalid virtual dtor in template poftwaresatent at gmail dot com
2009-05-28 19:03 ` [Bug c++/40284] " poftwaresatent at gmail dot com
@ 2009-05-28 21:01 ` jakub at gcc dot gnu dot org
2009-05-29 7:50 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-05-28 21:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2009-05-28 21:01 -------
Works with 4.4/trunk (fixed in between r143845 and r144437 on the trunk).
Likely PR39225.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40284
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/40284] regression? ICE (segfault) on invalid virtual dtor in template
2009-05-28 19:02 [Bug c++/40284] New: regression? ICE (segfault) on invalid virtual dtor in template poftwaresatent at gmail dot com
2009-05-28 19:03 ` [Bug c++/40284] " poftwaresatent at gmail dot com
2009-05-28 21:01 ` jakub at gcc dot gnu dot org
@ 2009-05-29 7:50 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-05-29 7:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2009-05-29 07:50 -------
*** This bug has been marked as a duplicate of 39225 ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40284
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-29 7:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-28 19:02 [Bug c++/40284] New: regression? ICE (segfault) on invalid virtual dtor in template poftwaresatent at gmail dot com
2009-05-28 19:03 ` [Bug c++/40284] " poftwaresatent at gmail dot com
2009-05-28 21:01 ` jakub at gcc dot gnu dot org
2009-05-29 7:50 ` rguenth 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).