public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/39153] New: virtual default dtor not defined
@ 2009-02-11 19:53 bkoz at gcc dot gnu dot org
2009-02-11 21:56 ` [Bug c++/39153] " jason at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2009-02-11 19:53 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]
Compiling:
struct _Impl_base
{
_Impl_base() = default;
virtual ~_Impl_base() = default;
};
template<typename _Tp>
class _Impl : public _Impl_base
{ };
int main()
{
_Impl<int> i;
return 0;
}
Gives:
gcc version 4.4.0 20090208 (experimental) (GCC)
%COMP.sh "-g -O0 -std=c++0x -fno-inline" vague_vs_default.cc
vague_vs_default.cc:4: warning: inline function virtual
_Impl_base::~_Impl_base() used but never defined
vague_vs_default.cc:4: warning: inline function virtual
_Impl_base::~_Impl_base() used but never defined
Which seems strange, as the base destructor is defined as default.
Also, the vauge linkage/vtable documentation bits here
http://gcc.gnu.org/onlinedocs/gcc-3.0.2/gcc_6.html#SEC118
may need to be updated or expanded to take into account defaulted destructors
vs. key method vtable emission.
--
Summary: virtual default dtor not defined
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: documentation
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bkoz at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39153
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/39153] virtual default dtor not defined
2009-02-11 19:53 [Bug c++/39153] New: virtual default dtor not defined bkoz at gcc dot gnu dot org
@ 2009-02-11 21:56 ` jason at gcc dot gnu dot org
2009-02-11 22:14 ` bkoz at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-02-11 21:56 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-02-11 21:56:21
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39153
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/39153] virtual default dtor not defined
2009-02-11 19:53 [Bug c++/39153] New: virtual default dtor not defined bkoz at gcc dot gnu dot org
2009-02-11 21:56 ` [Bug c++/39153] " jason at gcc dot gnu dot org
@ 2009-02-11 22:14 ` bkoz at gcc dot gnu dot org
2009-02-12 2:01 ` jason at gcc dot gnu dot org
2009-02-12 2:12 ` jason at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2009-02-11 22:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from bkoz at gcc dot gnu dot org 2009-02-11 22:13 -------
*** Bug 39158 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39153
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/39153] virtual default dtor not defined
2009-02-11 19:53 [Bug c++/39153] New: virtual default dtor not defined bkoz at gcc dot gnu dot org
2009-02-11 21:56 ` [Bug c++/39153] " jason at gcc dot gnu dot org
2009-02-11 22:14 ` bkoz at gcc dot gnu dot org
@ 2009-02-12 2:01 ` jason at gcc dot gnu dot org
2009-02-12 2:12 ` jason at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-02-12 2:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jason at gcc dot gnu dot org 2009-02-12 02:01 -------
Subject: Bug 39153
Author: jason
Date: Thu Feb 12 02:01:07 2009
New Revision: 144119
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144119
Log:
PR c++/39153
* decl2.c (cp_write_global_declarations):
Check DECL_DEFAULTED_FN, not DECL_ARTIFICIAL.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/defaulted9.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl2.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39153
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/39153] virtual default dtor not defined
2009-02-11 19:53 [Bug c++/39153] New: virtual default dtor not defined bkoz at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-02-12 2:01 ` jason at gcc dot gnu dot org
@ 2009-02-12 2:12 ` jason at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-02-12 2:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jason at gcc dot gnu dot org 2009-02-12 02:12 -------
Fixed.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39153
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-02-12 2:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-11 19:53 [Bug c++/39153] New: virtual default dtor not defined bkoz at gcc dot gnu dot org
2009-02-11 21:56 ` [Bug c++/39153] " jason at gcc dot gnu dot org
2009-02-11 22:14 ` bkoz at gcc dot gnu dot org
2009-02-12 2:01 ` jason at gcc dot gnu dot org
2009-02-12 2:12 ` jason 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).