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; 2+ 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] 2+ 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; 2+ 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] 2+ messages in thread
end of thread, other threads:[~2005-01-14 13:20 UTC | newest]
Thread overview: 2+ 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
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).