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

--- Comment #14 from Kirby Zhou <kirbyz...@sogou-inc.com> 2012-06-15 02:14:48 
UTC ---
I have tested to apply this patch to 4.7 branch, everythings goes well.
Since it breaks already existing code, anybody can do commit backport to 4.7
branch?

(In reply to comment #13)
> How about back port this patch to 4.7 branch?
> It cause a lot of compile error which easily confuse programmers.
> (In reply to comment #9)
> > Author: paolo
> > Date: Mon Apr  2 00:13:30 2012
> > New Revision: 186058
> > 
> > URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186058
> > Log:
> > /cp
> > 2012-04-01  Paolo Carlini  <paolo.carl...@oracle.com>
> > 
> >     PR c++/50043
> >     * class.c (deduce_noexcept_on_destructor,
> >     deduce_noexcept_on_destructors): New.
> >     (check_bases_and_members): Call the latter.
> >     * decl.c (grokfndecl): Call the former.
> >     * method.c (implicitly_declare_fn): Not static.
> >     * cp-tree.h (deduce_noexcept_on_destructor, implicitly_declare_fn):
> >     Declare
> > 
> > /testsuite
> > 2012-04-01  Paolo Carlini  <paolo.carl...@oracle.com>
> > 
> >     PR c++/50043
> >     * g++.dg/cpp0x/noexcept17.C: New.
> >     * g++.old-deja/g++.eh/cleanup1.C: Adjust.
> >     * g++.dg/tree-ssa/ehcleanup-1.C: Likewise.
> >     * g++.dg/cpp0x/noexcept01.C: Likewise.
> >     * g++.dg/eh/init-temp1.C: Likewise.
> >     * g++.dg/eh/ctor1.C: Likwise.
> > 
> > Added:
> >     trunk/gcc/testsuite/g++.dg/cpp0x/noexcept17.C
> > Modified:
> >     trunk/gcc/cp/ChangeLog
> >     trunk/gcc/cp/class.c
> >     trunk/gcc/cp/cp-tree.h
> >     trunk/gcc/cp/decl.c
> >     trunk/gcc/cp/method.c
> >     trunk/gcc/testsuite/ChangeLog
> >     trunk/gcc/testsuite/g++.dg/cpp0x/noexcept01.C
> >     trunk/gcc/testsuite/g++.dg/eh/ctor1.C
> >     trunk/gcc/testsuite/g++.dg/eh/init-temp1.C
> >     trunk/gcc/testsuite/g++.dg/tree-ssa/ehcleanup-1.C
> >     trunk/gcc/testsuite/g++.old-deja/g++.eh/cleanup1.C

Reply via email to