aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2014-03-31 19:16:14 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2014-03-31 19:16:14 +0100
commit0812493fc5033efb84acd3fc5fa96afee13e6054 (patch)
treedf9c29f7142a22ff7a068991e92575da9880e840
parenta283136a5870513f1ec4d7d9a0b3b2cc1771baf4 (diff)
downloadgcc-0812493fc5033efb84acd3fc5fa96afee13e6054.zip
gcc-0812493fc5033efb84acd3fc5fa96afee13e6054.tar.gz
gcc-0812493fc5033efb84acd3fc5fa96afee13e6054.tar.bz2
* libsupc++/eh_ptr.cc: Improve static_assert messages.
From-SVN: r208965
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/libsupc++/eh_ptr.cc6
2 files changed, 8 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 37a9a10..b1c0c60 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,7 @@
+2014-03-31 Jonathan Wakely <jwakely@redhat.com>
+
+ * libsupc++/eh_ptr.cc: Improve static_assert messages.
+
2014-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* testsuite/18_support/exception_ptr/60612-terminate.cc
diff --git a/libstdc++-v3/libsupc++/eh_ptr.cc b/libstdc++-v3/libsupc++/eh_ptr.cc
index 8c25a81..f974309 100644
--- a/libstdc++-v3/libsupc++/eh_ptr.cc
+++ b/libstdc++-v3/libsupc++/eh_ptr.cc
@@ -48,7 +48,8 @@ template<typename Ex>
static_assert( termHandler<__cxa_exception>()
== termHandler<__cxa_dependent_exception>(),
- "__cxa_dependent_exception::termHandler layout is correct" );
+ "__cxa_dependent_exception::termHandler layout must be"
+ " consistent with __cxa_exception::termHandler" );
#ifndef __ARM_EABI_UNWINDER__
template<typename Ex>
@@ -57,7 +58,8 @@ template<typename Ex>
static_assert( adjptr<__cxa_exception>()
== adjptr<__cxa_dependent_exception>(),
- "__cxa_dependent_exception::adjustedPtr layout is correct" );
+ "__cxa_dependent_exception::adjustedPtr layout must be"
+ " consistent with __cxa_exception::adjustedPtr" );
#endif
}