re PR libstdc++/64367 (g++-v5/stdexcept:52:28: error: invalid use of non-static data...
authorJonathan Wakely <jwakely@redhat.com>
Sun, 21 Dec 2014 15:16:08 +0000 (15:16 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sun, 21 Dec 2014 15:16:08 +0000 (15:16 +0000)
PR libstdc++/64367
* include/std/stdexcept: Don't use non-static member in sizeof.

From-SVN: r218997

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();