]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR libstdc++/66902
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Sep 2015 19:05:15 +0000 (19:05 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Sep 2015 19:05:15 +0000 (19:05 +0000)
* src/c++11/debug.cc (_S_debug_messages): Make array const.

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

libstdc++-v3/ChangeLog
libstdc++-v3/src/c++11/debug.cc

index eb4758901ec87989dedfadb00134b857b68bf375..b0e0af8bcb3931183f512cc8fd05c820a112f42d 100644 (file)
@@ -1,5 +1,8 @@
 2015-09-03  Jonathan Wakely  <jwakely@redhat.com>
 
+       PR libstdc++/66902
+       * src/c++11/debug.cc (_S_debug_messages): Make array const.
+
        PR libstdc++/66998
        * include/experimental/functional (_Not_fn): Add exception
        specifications and non-deduced return types.
index c435de70b51e88e35dfd8026dafeb31a3161d34e..ac3ac67b49e695cfd28d058788ef30eaa41af524 100644 (file)
@@ -103,7 +103,7 @@ namespace
 
 namespace __gnu_debug
 {
-  static const char* _S_debug_messages[] =
+  const char* const _S_debug_messages[] =
   {
     // General Checks
     "function requires a valid iterator range [%1.name;, %2.name;)",