OSDN Git Service

2009-06-03 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Jun 2009 10:37:20 +0000 (10:37 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Jun 2009 10:37:20 +0000 (10:37 +0000)
commit65f3a02cea9b803677528365f5757d8e4ca9f2d8
treec3568ccf621b03599044de8ca5b322f78fc7a78d
parent9ce4d073c2896473e597e2e4dff95e7ad8b9a866
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148122 138bc75d-0d04-0410-961f-82ee72b054a4
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