public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/39164] [C++0x] defaulted dtor redefinition not caught
       [not found] <bug-39164-4@http.gcc.gnu.org/bugzilla/>
@ 2011-09-30  0:58 ` paolo.carlini at oracle dot com
  2011-10-03 15:35 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-09-30  0:58 UTC (permalink / raw)
  To: gcc-bugs

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;
}


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/39164] [C++0x] defaulted dtor redefinition not caught
       [not found] <bug-39164-4@http.gcc.gnu.org/bugzilla/>
  2011-09-30  0:58 ` [Bug c++/39164] [C++0x] defaulted dtor redefinition not caught paolo.carlini at oracle dot com
@ 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
  3 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2011-10-03 15:35 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011-10-03
         AssignedTo|unassigned at gcc dot       |jason at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/39164] [C++0x] defaulted dtor redefinition not caught
       [not found] <bug-39164-4@http.gcc.gnu.org/bugzilla/>
  2011-09-30  0:58 ` [Bug c++/39164] [C++0x] defaulted dtor redefinition not caught paolo.carlini at oracle dot com
  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
  3 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2011-10-06 19:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-10-06 19:57:06 UTC ---
Author: jason
Date: Thu Oct  6 19:56:53 2011
New Revision: 179634

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179634
Log:
    PR c++/39164
    * decl.c (grokfndecl): Diagnose redefinition of defaulted fn.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/defaulted31.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/39164] [C++0x] defaulted dtor redefinition not caught
       [not found] <bug-39164-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2011-10-06 19:58 ` jason at gcc dot gnu.org
@ 2011-10-09 16:17 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-09 16:17 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|jason at gcc dot gnu.org    |
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.0

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-09 16:16:01 UTC ---
Fixed then.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-10-09 16:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-39164-4@http.gcc.gnu.org/bugzilla/>
2011-09-30  0:58 ` [Bug c++/39164] [C++0x] defaulted dtor redefinition not caught paolo.carlini at oracle dot com
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

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).