public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/39164] New: defaulted dtor redefinition not caught
@ 2009-02-12 7:45 bkoz at gcc dot gnu dot org
2009-02-24 17:54 ` [Bug c++/39164] " bkoz at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2009-02-12 7:45 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 933 bytes --]
>From revision 144119:
struct _Impl_base
{
_Impl_base() = default;
#if 1
~_Impl_base() = default;
#else
~_Impl_base() { }
#endif
};
_Impl_base::~_Impl_base() { }
int main()
{
_Impl_base i;
return 0;
}
compiled:
%COMP.sh "-std=c++0x -g -O2 -Wall -Wextra" default2.cc
Has no error, when:
default2.cc:12: error: redefinition of �_Impl_base::~_Impl_base()�
default2.cc:8: error: �_Impl_base::~_Impl_base()� previously defined here
Is expected. Code in #else should be equivalent to #if.
--
Summary: defaulted dtor redefinition not caught
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: accepts-invalid
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=39164
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/39164] defaulted dtor redefinition not caught
2009-02-12 7:45 [Bug c++/39164] New: defaulted dtor redefinition not caught bkoz at gcc dot gnu dot org
@ 2009-02-24 17:54 ` bkoz at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2009-02-24 17:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from bkoz at gcc dot gnu dot org 2009-02-24 17:54 -------
Not urgent.
--
bkoz at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39164
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-24 17:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-12 7:45 [Bug c++/39164] New: defaulted dtor redefinition not caught bkoz at gcc dot gnu dot org
2009-02-24 17:54 ` [Bug c++/39164] " bkoz 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).