re PR c++/49107 ([C++0x][4.7 Regression] incomplete type regression with std::pair)
authorJason Merrill <jason@redhat.com>
Wed, 15 Jun 2011 03:51:59 +0000 (23:51 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 15 Jun 2011 03:51:59 +0000 (23:51 -0400)
commitb273cdb17474d4d221fda93c6c9936bfd7d0a6ae
tree894f5414477006e9ef4e80113e95f3c6f4ed6beb
parentf1608bfca56f5ab4a7160c57d5179e59a7c4a197
re PR c++/49107 ([C++0x][4.7 Regression] incomplete type regression with std::pair)

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.

From-SVN: r175073
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/method.c
gcc/cp/pt.c
gcc/cp/typeck.c
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/noexcept13.C [new file with mode: 0644]