public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17816] New: duplicate definition of abstract virtual function not diagnosed
@ 2004-10-03 19:44 rth at gcc dot gnu dot org
2004-10-03 19:46 ` [Bug c++/17816] " pinskia at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-10-03 19:44 UTC (permalink / raw)
To: gcc-bugs
struct S {
virtual int foo() = 0;
};
int S::foo() { return 0; }
int S::foo() { return 0; }
Affects at least gcc 3.2 and forward.
--
Summary: duplicate definition of abstract virtual function not
diagnosed
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: accepts-invalid, diagnostic
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rth at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17816
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/17816] duplicate definition of abstract virtual function not diagnosed
2004-10-03 19:44 [Bug c++/17816] New: duplicate definition of abstract virtual function not diagnosed rth at gcc dot gnu dot org
@ 2004-10-03 19:46 ` pinskia at gcc dot gnu dot org
2005-01-20 23:52 ` [Bug c++/17816] duplicate definition of pure " reichelt at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-03 19:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-03 19:46 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-10-03 19:46:36
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17816
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/17816] duplicate definition of pure virtual function not diagnosed
2004-10-03 19:44 [Bug c++/17816] New: duplicate definition of abstract virtual function not diagnosed rth at gcc dot gnu dot org
2004-10-03 19:46 ` [Bug c++/17816] " pinskia at gcc dot gnu dot org
@ 2005-01-20 23:52 ` reichelt at gcc dot gnu dot org
2005-02-09 18:40 ` aoliva at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-01-20 23:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-01-20 23:52 -------
Fails since at least gcc 2.95.3.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Keywords|diagnostic |monitored
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17816
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/17816] duplicate definition of pure virtual function not diagnosed
2004-10-03 19:44 [Bug c++/17816] New: duplicate definition of abstract virtual function not diagnosed rth at gcc dot gnu dot org
2004-10-03 19:46 ` [Bug c++/17816] " pinskia at gcc dot gnu dot org
2005-01-20 23:52 ` [Bug c++/17816] duplicate definition of pure " reichelt at gcc dot gnu dot org
@ 2005-02-09 18:40 ` aoliva at gcc dot gnu dot org
2005-02-09 19:47 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2005-02-09 18:40 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |aoliva at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2005-01-02 01:34:29 |2005-02-09 13:06:51
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17816
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/17816] duplicate definition of pure virtual function not diagnosed
2004-10-03 19:44 [Bug c++/17816] New: duplicate definition of abstract virtual function not diagnosed rth at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-02-09 18:40 ` aoliva at gcc dot gnu dot org
@ 2005-02-09 19:47 ` pinskia at gcc dot gnu dot org
2005-02-14 17:47 ` cvs-commit at gcc dot gnu dot org
2005-02-14 19:28 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-09 19:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-09 14:36 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2005-02/msg00351.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17816
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/17816] duplicate definition of pure virtual function not diagnosed
2004-10-03 19:44 [Bug c++/17816] New: duplicate definition of abstract virtual function not diagnosed rth at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-02-09 19:47 ` pinskia at gcc dot gnu dot org
@ 2005-02-14 17:47 ` cvs-commit at gcc dot gnu dot org
2005-02-14 19:28 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-14 17:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-02-14 12:01 -------
Subject: Bug 17816
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: aoliva@gcc.gnu.org 2005-02-14 12:01:16
Modified files:
gcc/cp : ChangeLog decl.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/other: redecl2.C
Log message:
gcc/cp/ChangeLog:
PR c++/17816
* decl.c (redeclaration_error_message): Report redefinition of
pure virtual function.
gcc/testsuite/ChangeLog:
PR c++/17816
* g++.dg/other/redecl2.C: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4626&r2=1.4627
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1362&r2=1.1363
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5029&r2=1.5030
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/other/redecl2.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17816
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/17816] duplicate definition of pure virtual function not diagnosed
2004-10-03 19:44 [Bug c++/17816] New: duplicate definition of abstract virtual function not diagnosed rth at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-02-14 17:47 ` cvs-commit at gcc dot gnu dot org
@ 2005-02-14 19:28 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-14 19:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-14 15:00 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17816
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-02-14 15:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-03 19:44 [Bug c++/17816] New: duplicate definition of abstract virtual function not diagnosed rth at gcc dot gnu dot org
2004-10-03 19:46 ` [Bug c++/17816] " pinskia at gcc dot gnu dot org
2005-01-20 23:52 ` [Bug c++/17816] duplicate definition of pure " reichelt at gcc dot gnu dot org
2005-02-09 18:40 ` aoliva at gcc dot gnu dot org
2005-02-09 19:47 ` pinskia at gcc dot gnu dot org
2005-02-14 17:47 ` cvs-commit at gcc dot gnu dot org
2005-02-14 19:28 ` 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).