]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR libstdc++/64367
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 21 Dec 2014 15:16:08 +0000 (15:16 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 21 Dec 2014 15:16:08 +0000 (15:16 +0000)
* include/std/stdexcept: Don't use non-static member in sizeof.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218997 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/stdexcept

index 60c90f753a955bb712e4049c9a770b81e45b9756..54dabac154baa7196a6c051cfc503b5a6c208bbc 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-21  Jonathan Wakely  <jwakely@redhat.com>
+
+       PR libstdc++/64367
+       * include/std/stdexcept: Don't use non-static member in sizeof.
+
 2014-12-20  François Dumont  <fdumont@gcc.gnu.org>
 
        * include/debug/vector (std::__debug::vector<>::clear()): Do not reset
index c927f0539bbb57a7437f61745bbc16ed9d9c49bc..e049a6eecd84917eadab4b98df4d3fbdcfc14f9f 100644 (file)
@@ -49,7 +49,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
   {
     union {
       const char* _M_p;
-      char _M_bytes[sizeof(_M_p)];
+      char _M_bytes[sizeof(const char*)];
     };
 
     __cow_string();