public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19439] New: Duplicate destructor accepted
@ 2005-01-14 10:49 reichelt at gcc dot gnu dot org
2005-01-14 13:22 ` [Bug c++/19439] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-01-14 10:49 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet is accepted (since at least gcc 2.95.3).
It is rejected when A gets instantiated, but that could be diagnosed at
definition time IMHO.
===========================
template<int> struct A
{
~A() {}
~A() {}
};
===========================
--
Summary: Duplicate destructor accepted
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: accepts-invalid, monitored
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=19439
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/19439] Duplicate destructor accepted
2005-01-14 10:49 [Bug c++/19439] New: Duplicate destructor accepted reichelt at gcc dot gnu dot org
@ 2005-01-14 13:22 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-14 13:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-14 13:20 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-01-14 13:20:25
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19439
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/19439] Duplicate destructor accepted
[not found] <bug-19439-1771@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2007-01-06 1:06 ` lmillward at gcc dot gnu dot org
@ 2007-01-06 1:09 ` lmillward at gcc dot gnu dot org
4 siblings, 0 replies; 7+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2007-01-06 1:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from lmillward at gcc dot gnu dot org 2007-01-06 01:09 -------
Fixed in 4.3.
--
lmillward at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19439
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/19439] Duplicate destructor accepted
[not found] <bug-19439-1771@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2006-12-21 1:15 ` patchapp at dberlin dot org
@ 2007-01-06 1:06 ` lmillward at gcc dot gnu dot org
2007-01-06 1:09 ` lmillward at gcc dot gnu dot org
4 siblings, 0 replies; 7+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2007-01-06 1:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from lmillward at gcc dot gnu dot org 2007-01-06 01:06 -------
Subject: Bug 19439
Author: lmillward
Date: Sat Jan 6 01:06:04 2007
New Revision: 120520
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120520
Log:
PR c++/19439
* class.c (add_method): Don't wait until template
instantiation time to complain about duplicate methods.
* g++.dg/template/duplicate1.C: New test
* g++.dg/template/memfriend6.C: Adjust error markers.
Added:
trunk/gcc/testsuite/g++.dg/template/duplicate1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/template/memfriend6.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19439
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/19439] Duplicate destructor accepted
[not found] <bug-19439-1771@http.gcc.gnu.org/bugzilla/>
2006-02-10 17:15 ` reichelt at gcc dot gnu dot org
2006-12-21 0:24 ` lmillward at gcc dot gnu dot org
@ 2006-12-21 1:15 ` patchapp at dberlin dot org
2007-01-06 1:06 ` lmillward at gcc dot gnu dot org
2007-01-06 1:09 ` lmillward at gcc dot gnu dot org
4 siblings, 0 replies; 7+ messages in thread
From: patchapp at dberlin dot org @ 2006-12-21 1:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from patchapp at dberlin dot org 2006-12-21 01:15 -------
Subject: Bug number PR c++/19439
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-12/msg01475.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19439
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/19439] Duplicate destructor accepted
[not found] <bug-19439-1771@http.gcc.gnu.org/bugzilla/>
2006-02-10 17:15 ` reichelt at gcc dot gnu dot org
@ 2006-12-21 0:24 ` lmillward at gcc dot gnu dot org
2006-12-21 1:15 ` patchapp at dberlin dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-12-21 0:24 UTC (permalink / raw)
To: gcc-bugs
--
lmillward at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |lmillward at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-09-03 21:39:25 |2006-12-21 00:24:42
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19439
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/19439] Duplicate destructor accepted
[not found] <bug-19439-1771@http.gcc.gnu.org/bugzilla/>
@ 2006-02-10 17:15 ` reichelt at gcc dot gnu dot org
2006-12-21 0:24 ` lmillward at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-10 17:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from reichelt at gcc dot gnu dot org 2006-02-10 17:15 -------
This also holds for other duplicate member functions like "void foo() {}".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19439
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-01-06 1:09 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-14 10:49 [Bug c++/19439] New: Duplicate destructor accepted reichelt at gcc dot gnu dot org
2005-01-14 13:22 ` [Bug c++/19439] " pinskia at gcc dot gnu dot org
[not found] <bug-19439-1771@http.gcc.gnu.org/bugzilla/>
2006-02-10 17:15 ` reichelt at gcc dot gnu dot org
2006-12-21 0:24 ` lmillward at gcc dot gnu dot org
2006-12-21 1:15 ` patchapp at dberlin dot org
2007-01-06 1:06 ` lmillward at gcc dot gnu dot org
2007-01-06 1:09 ` lmillward 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).