public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/39164] [C++0x] defaulted dtor redefinition not caught
Date: Fri, 30 Sep 2011 00:58:00 -0000	[thread overview]
Message-ID: <bug-39164-4-2j1wUD6LlR@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-39164-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39164

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|gcc-bugs at gcc dot gnu.org |
            Summary|defaulted dtor redefinition |[C++0x] defaulted dtor
                   |not caught                  |redefinition not caught

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-09-30 00:33:08 UTC ---
Now it errors out but says:

39164.C:12:25: error: declaration of ‘_Impl_base::~_Impl_base()’ has a
different exception specifier
39164.C:6:3: error: from previous declaration ‘_Impl_base::~_Impl_base()
noexcept (true)’

I think it's still not what Benjamin expects, because this variant is accepted:

struct _Impl_base
{
  _Impl_base() = default;

#if 1
  ~_Impl_base() = default;
#else
  ~_Impl_base() { }
#endif
};

_Impl_base::~_Impl_base() noexcept (true) { }

int main()
{
  _Impl_base i;
  return 0;
}


       reply	other threads:[~2011-09-30  0:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-39164-4@http.gcc.gnu.org/bugzilla/>
2011-09-30  0:58 ` paolo.carlini at oracle dot com [this message]
2011-10-03 15:35 ` jason at gcc dot gnu.org
2011-10-06 19:58 ` jason at gcc dot gnu.org
2011-10-09 16:17 ` paolo.carlini at oracle dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-39164-4-2j1wUD6LlR@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).