public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19440] New: Invalid destructor declaration in template class accepted
@ 2005-01-14 11:03 reichelt at gcc dot gnu dot org
2005-01-14 13:20 ` [Bug c++/19440] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-01-14 11:03 UTC (permalink / raw)
To: gcc-bugs
The following IMHO invalid code snippet is accepted
(since at least gcc 2.95.3).
===========================
template<int> struct A
{
~A<0>();
};
===========================
--
Summary: Invalid destructor declaration in template class
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=19440
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/19440] Invalid destructor declaration in template class accepted
2005-01-14 11:03 [Bug c++/19440] New: Invalid destructor declaration in template class accepted reichelt at gcc dot gnu dot org
@ 2005-01-14 13:20 ` pinskia at gcc dot gnu dot org
2005-02-11 0:38 ` reichelt at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-14 13:20 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:37
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19440
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/19440] Invalid destructor declaration in template class accepted
2005-01-14 11:03 [Bug c++/19440] New: Invalid destructor declaration in template class accepted reichelt at gcc dot gnu dot org
2005-01-14 13:20 ` [Bug c++/19440] " pinskia at gcc dot gnu dot org
@ 2005-02-11 0:38 ` reichelt at gcc dot gnu dot org
2005-02-11 1:10 ` mark at codesourcery dot com
2005-02-20 2:01 ` cvs-commit at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-02-11 0:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-02-10 21:28 -------
Fixed on mainline (probably by one of your recent patches, Mark).
Do you want this example as a testcase?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at codesourcery dot com
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19440
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/19440] Invalid destructor declaration in template class accepted
2005-01-14 11:03 [Bug c++/19440] New: Invalid destructor declaration in template class accepted reichelt at gcc dot gnu dot org
2005-01-14 13:20 ` [Bug c++/19440] " pinskia at gcc dot gnu dot org
2005-02-11 0:38 ` reichelt at gcc dot gnu dot org
@ 2005-02-11 1:10 ` mark at codesourcery dot com
2005-02-20 2:01 ` cvs-commit at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: mark at codesourcery dot com @ 2005-02-11 1:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mark at codesourcery dot com 2005-02-10 22:06 -------
Subject: Re: Invalid destructor declaration in template class
accepted
reichelt at gcc dot gnu dot org wrote:
> ------- Additional Comments From reichelt at gcc dot gnu dot org 2005-02-10 21:28 -------
> Fixed on mainline (probably by one of your recent patches, Mark).
>
> Do you want this example as a testcase?
I think the testcase I checked in with the patch is sufficiently
comprehensive, though I don't object to adding this one too.
Thanks,
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19440
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/19440] Invalid destructor declaration in template class accepted
2005-01-14 11:03 [Bug c++/19440] New: Invalid destructor declaration in template class accepted reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-02-11 1:10 ` mark at codesourcery dot com
@ 2005-02-20 2:01 ` cvs-commit at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-20 2:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-02-19 20:37 -------
Subject: Bug 19440
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: reichelt@gcc.gnu.org 2005-02-19 20:36:57
Modified files:
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/inherit: volatile1.C
gcc/testsuite/g++.dg/template: dtor4.C
Log message:
PR c++/19299
* g++.dg/inherit/volatile1.C: New test.
PR c++/19440
* g++.dg/template/dtor4.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5057&r2=1.5058
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/inherit/volatile1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/dtor4.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19440
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-02-19 20:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-14 11:03 [Bug c++/19440] New: Invalid destructor declaration in template class accepted reichelt at gcc dot gnu dot org
2005-01-14 13:20 ` [Bug c++/19440] " pinskia at gcc dot gnu dot org
2005-02-11 0:38 ` reichelt at gcc dot gnu dot org
2005-02-11 1:10 ` mark at codesourcery dot com
2005-02-20 2:01 ` cvs-commit 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).