]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/testsuite/18_support/exception_ptr/40296.cc
re PR libstdc++/40296 ([C++0x] std::exception_ptr comparisons)
authorPaolo Carlini <paolo@gcc.gnu.org>
Wed, 3 Jun 2009 10:37:20 +0000 (10:37 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 3 Jun 2009 10:37:20 +0000 (10:37 +0000)
commit110a123aae0196680d42ace6e3899304ceba4d1d
treec3568ccf621b03599044de8ca5b322f78fc7a78d
parent8cd281486b0025bd3a6f7f000e24be4a8d231e22
re PR libstdc++/40296 ([C++0x] std::exception_ptr comparisons)

2009-06-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/40296
* libsupc++/exception_ptr.h (exception_ptr::operator!,
exception_ptr::operator __safe_bool): Only declare when
_GLIBCXX_EH_PTR_COMPAT is undefined.
* libsupc++/eh_ptr.cc: Define _GLIBCXX_EH_PTR_COMPAT before including
exception_ptr.
* testsuite/18_support/exception_ptr/40296.cc: New.
* testsuite/18_support/nested_exception/throw_with_nested.cc: Adjust.
* testsuite/18_support/nested_exception/cons.cc: Likewise.
* testsuite/18_support/nested_exception/nested_ptr.cc: Likewise.
* testsuite/18_support/exception_ptr/current_exception.cc: Likewise.

From-SVN: r148122
libstdc++-v3/libsupc++/eh_ptr.cc
libstdc++-v3/libsupc++/exception_ptr.h
libstdc++-v3/testsuite/18_support/exception_ptr/40296.cc [new file with mode: 0644]
libstdc++-v3/testsuite/18_support/exception_ptr/current_exception.cc
libstdc++-v3/testsuite/18_support/nested_exception/cons.cc
libstdc++-v3/testsuite/18_support/nested_exception/nested_ptr.cc
libstdc++-v3/testsuite/18_support/nested_exception/throw_with_nested.cc