aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/libsupc++
diff options
context:
space:
mode:
authorville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-11 12:04:23 +0000
committerville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-11 12:04:23 +0000
commit49dc00fbfdc3a267b2d1bc5f01852d6c65e7680a (patch)
tree172f7457c7f33fe04227fbf6aa7dc964851b90b0 /libstdc++-v3/libsupc++
parent035418fd08192429533b6721ec2b438bc3f0107b (diff)
PR libstdc++/68139
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231562 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/libsupc++')
-rw-r--r--libstdc++-v3/libsupc++/nested_exception.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libstdc++-v3/libsupc++/nested_exception.h b/libstdc++-v3/libsupc++/nested_exception.h
index a716f75adf4..82b95df27ae 100644
--- a/libstdc++-v3/libsupc++/nested_exception.h
+++ b/libstdc++-v3/libsupc++/nested_exception.h
@@ -37,6 +37,7 @@
#else
#include <bits/c++config.h>
+#include <bits/move.h>
#if ATOMIC_INT_LOCK_FREE < 2
# error This platform does not support exception propagation.
@@ -142,7 +143,8 @@ namespace std
{
static void _S_rethrow(const _Tp& __t)
{
- if (auto __tp = dynamic_cast<const nested_exception*>(&__t))
+ if (auto __tp =
+ dynamic_cast<const nested_exception*>(std::__addressof(__t)))
__tp->rethrow_nested();
}
};