public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12335] New: [3.4 regression] ICE when explicitly calling destructor
@ 2003-09-18 22:41 bangerth at dealii dot org
2003-09-18 23:26 ` [Bug c++/12335] " bangerth at dealii dot org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: bangerth at dealii dot org @ 2003-09-18 22:41 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12335
Summary: [3.4 regression] ICE when explicitly calling destructor
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bangerth at dealii dot org
CC: gcc-bugs at gcc dot gnu dot org
This code
-------------------------------------
struct X {
void f() {
X::~X();
}
};
-------------------------------------
didn't compile previously already (it is in fact PR 12333), but it now ICEs:
tmp/g> ../build-gcc/gcc-install/bin/c++ -c x.cc
x.cc: In member function `void X::f()':
x.cc:3: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
W.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/12335] [3.4 regression] ICE when explicitly calling destructor
2003-09-18 22:41 [Bug c++/12335] New: [3.4 regression] ICE when explicitly calling destructor bangerth at dealii dot org
@ 2003-09-18 23:26 ` bangerth at dealii dot org
2003-09-19 2:38 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bangerth at dealii dot org @ 2003-09-18 23:26 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12335
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.4
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/12335] [3.4 regression] ICE when explicitly calling destructor
2003-09-18 22:41 [Bug c++/12335] New: [3.4 regression] ICE when explicitly calling destructor bangerth at dealii dot org
2003-09-18 23:26 ` [Bug c++/12335] " bangerth at dealii dot org
@ 2003-09-19 2:38 ` pinskia at gcc dot gnu dot org
2003-09-22 17:20 ` nathan at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-19 2:38 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12335
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2003-09-18 23:37:21
date| |
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-18 23:37 -------
>From Phil's regression hunter: Search converges between 2003-07-16-trunk (#345) and 2003-
07-17-trunk (#346).
Before that date GCC rejected it:
input.cc: In member function `void X::f()':
input.cc:3: error: no `X::~X()' member function declared in class `X'
input.cc:3: error: declaration of `X::~X()' outside of class is not definition
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/12335] [3.4 regression] ICE when explicitly calling destructor
2003-09-18 22:41 [Bug c++/12335] New: [3.4 regression] ICE when explicitly calling destructor bangerth at dealii dot org
2003-09-18 23:26 ` [Bug c++/12335] " bangerth at dealii dot org
2003-09-19 2:38 ` pinskia at gcc dot gnu dot org
@ 2003-09-22 17:20 ` nathan at gcc dot gnu dot org
2003-12-29 17:50 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: nathan at gcc dot gnu dot org @ 2003-09-22 17:20 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12335
nathan at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |nathan at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/12335] [3.4 regression] ICE when explicitly calling destructor
2003-09-18 22:41 [Bug c++/12335] New: [3.4 regression] ICE when explicitly calling destructor bangerth at dealii dot org
` (2 preceding siblings ...)
2003-09-22 17:20 ` nathan at gcc dot gnu dot org
@ 2003-12-29 17:50 ` pinskia at gcc dot gnu dot org
2004-01-13 1:28 ` giovannibajo at libero dot it
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-29 17:50 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12335
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/12335] [3.4 regression] ICE when explicitly calling destructor
2003-09-18 22:41 [Bug c++/12335] New: [3.4 regression] ICE when explicitly calling destructor bangerth at dealii dot org
` (3 preceding siblings ...)
2003-12-29 17:50 ` pinskia at gcc dot gnu dot org
@ 2004-01-13 1:28 ` giovannibajo at libero dot it
2004-01-13 4:34 ` giovannibajo at libero dot it
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-13 1:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-01-13 01:28 -------
Wolfgang,
are you really sure your testcase is valid? I don't think you can call the
destructor if you have not declared it. I think this is ice-on-invalid.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12335
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/12335] [3.4 regression] ICE when explicitly calling destructor
2003-09-18 22:41 [Bug c++/12335] New: [3.4 regression] ICE when explicitly calling destructor bangerth at dealii dot org
` (4 preceding siblings ...)
2004-01-13 1:28 ` giovannibajo at libero dot it
@ 2004-01-13 4:34 ` giovannibajo at libero dot it
2004-01-13 4:55 ` giovannibajo at libero dot it
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-13 4:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-01-13 04:34 -------
mine
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|nathan at gcc dot gnu dot |giovannibajo at gcc dot gnu
|org |dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12335
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/12335] [3.4 regression] ICE when explicitly calling destructor
2003-09-18 22:41 [Bug c++/12335] New: [3.4 regression] ICE when explicitly calling destructor bangerth at dealii dot org
` (5 preceding siblings ...)
2004-01-13 4:34 ` giovannibajo at libero dot it
@ 2004-01-13 4:55 ` giovannibajo at libero dot it
2004-01-13 15:33 ` bangerth at dealii dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-13 4:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-01-13 04:55 -------
Patch here:
http://gcc.gnu.org/ml/gcc-patches/2004-01/msg01122.html
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12335
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/12335] [3.4 regression] ICE when explicitly calling destructor
2003-09-18 22:41 [Bug c++/12335] New: [3.4 regression] ICE when explicitly calling destructor bangerth at dealii dot org
` (6 preceding siblings ...)
2004-01-13 4:55 ` giovannibajo at libero dot it
@ 2004-01-13 15:33 ` bangerth at dealii dot org
2004-01-14 4:50 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bangerth at dealii dot org @ 2004-01-13 15:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-01-13 15:33 -------
I have no clue. I mean, I would expect that if I don't declare the
destructor explicitly, then the default destructor is automatically
synthetized. On the other hand, icc7 rejects the code, saying that
there is no X::~X. Whatever, an ICE is not appropriate.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12335
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/12335] [3.4 regression] ICE when explicitly calling destructor
2003-09-18 22:41 [Bug c++/12335] New: [3.4 regression] ICE when explicitly calling destructor bangerth at dealii dot org
` (7 preceding siblings ...)
2004-01-13 15:33 ` bangerth at dealii dot org
@ 2004-01-14 4:50 ` cvs-commit at gcc dot gnu dot org
2004-01-14 4:54 ` cvs-commit at gcc dot gnu dot org
2004-01-14 4:55 ` giovannibajo at libero dot it
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-14 4:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-01-14 04:50 -------
Subject: Bug 12335
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: giovannibajo@gcc.gnu.org 2004-01-14 04:50:30
Modified files:
gcc/cp : ChangeLog parser.c
Log message:
PR c++/12335
* parser.c (cp_parser_lookup_name): Return error_mark_node if there
is no destructor while looking up a BIT_NOT_EXPR.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3877&r2=1.3878
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.152&r2=1.153
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12335
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/12335] [3.4 regression] ICE when explicitly calling destructor
2003-09-18 22:41 [Bug c++/12335] New: [3.4 regression] ICE when explicitly calling destructor bangerth at dealii dot org
` (8 preceding siblings ...)
2004-01-14 4:50 ` cvs-commit at gcc dot gnu dot org
@ 2004-01-14 4:54 ` cvs-commit at gcc dot gnu dot org
2004-01-14 4:55 ` giovannibajo at libero dot it
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-14 4:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-01-14 04:54 -------
Subject: Bug 12335
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: giovannibajo@gcc.gnu.org 2004-01-14 04:54:24
Modified files:
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/parse: dtor3.C
Log message:
PR c++/12335
* g++.dg/parse/dtor3.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3372&r2=1.3373
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/dtor3.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12335
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/12335] [3.4 regression] ICE when explicitly calling destructor
2003-09-18 22:41 [Bug c++/12335] New: [3.4 regression] ICE when explicitly calling destructor bangerth at dealii dot org
` (9 preceding siblings ...)
2004-01-14 4:54 ` cvs-commit at gcc dot gnu dot org
@ 2004-01-14 4:55 ` giovannibajo at libero dot it
10 siblings, 0 replies; 12+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-14 4:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-01-14 04:55 -------
Fixed in GCC 3.4.0, thanks Wolfgang!
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12335
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2004-01-14 4:55 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-18 22:41 [Bug c++/12335] New: [3.4 regression] ICE when explicitly calling destructor bangerth at dealii dot org
2003-09-18 23:26 ` [Bug c++/12335] " bangerth at dealii dot org
2003-09-19 2:38 ` pinskia at gcc dot gnu dot org
2003-09-22 17:20 ` nathan at gcc dot gnu dot org
2003-12-29 17:50 ` pinskia at gcc dot gnu dot org
2004-01-13 1:28 ` giovannibajo at libero dot it
2004-01-13 4:34 ` giovannibajo at libero dot it
2004-01-13 4:55 ` giovannibajo at libero dot it
2004-01-13 15:33 ` bangerth at dealii dot org
2004-01-14 4:50 ` cvs-commit at gcc dot gnu dot org
2004-01-14 4:54 ` cvs-commit at gcc dot gnu dot org
2004-01-14 4:55 ` giovannibajo at libero dot it
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).