[Bug c++/49107] [C++0x][4.7 Regression] incomplete type regression with std::pair

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 15 03:53:00 GMT 2011


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

--- Comment #22 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-15 03:52:02 UTC ---
Author: jason
Date: Wed Jun 15 03:51:59 2011
New Revision: 175073

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175073
Log:
    PR c++/49107
    * cp-tree.h (DEFERRED_NOEXCEPT_SPEC_P): Handle overload.
    * method.c (defaulted_late_check): Only maybe_instantiate_noexcept
    if the declaration had an exception-specifier.
    (process_subob_fn): Don't maybe_instantiate_noexcept.
    * pt.c (maybe_instantiate_noexcept): Handle overload.
    * typeck2.c (nothrow_spec_p_uninst): New.
    (merge_exception_specifiers): Add 'fn' parm.  Build up overload.
    * typeck.c (merge_types): Adjust.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/noexcept13.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/method.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/cp/typeck2.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list