summaryrefslogtreecommitdiff
path: root/libstdc++-v3/src
diff options
context:
space:
mode:
authortorvald <torvald@138bc75d-0d04-0410-961f-82ee72b054a4>2016-01-17 17:43:37 +0000
committertorvald <torvald@138bc75d-0d04-0410-961f-82ee72b054a4>2016-01-17 17:43:37 +0000
commitc3aae5035ea82e025668398b8c17a7b6cb1ad88c (patch)
tree3827697e42deda95d865762c36e71645337f86ef /libstdc++-v3/src
parent514da7dbdc201f36276fdd05ed45a40c1f151150 (diff)
downloadgcc-c3aae5035ea82e025668398b8c17a7b6cb1ad88c.tar.gz
libstdc++: Fix static_assert.
* src/c++11/cow-stdexcept.cc (txnal_read_ptr): Fix static_assert. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232483 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r--libstdc++-v3/src/c++11/cow-stdexcept.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/src/c++11/cow-stdexcept.cc b/libstdc++-v3/src/c++11/cow-stdexcept.cc
index afc3f6cddf7..e2d7e761493 100644
--- a/libstdc++-v3/src/c++11/cow-stdexcept.cc
+++ b/libstdc++-v3/src/c++11/cow-stdexcept.cc
@@ -278,8 +278,8 @@ _txnal_cow_string_C1_for_exceptions(void* that, const char* s, void *exc)
static void* txnal_read_ptr(void* const * ptr)
{
static_assert(sizeof(uint64_t) == sizeof(void*)
- || sizeof(uint32_t) == sizeof(void*));
- // FIXME make a true compile-time choice to prevent warnings.
+ || sizeof(uint32_t) == sizeof(void*),
+ "Pointers must be 32 bits or 64 bits wide");
#if __UINTPTR_MAX__ == __UINT64_MAX__
return (void*)_ITM_RU8((const uint64_t*)ptr);
#else