On Sun, 27 Jul 2025 at 21:27 +0100, Caolán McNamara wrote:
From: Caolán McNamara <[email protected]>

libstdc++-v3/ChangeLog:
   * include/bits/regex.tcc (__collatenames): Make array const.

Thanks for the patch. This arrived while I was (mostly) offline for a
month in the summer and I missed it.

The change is good, and I think it's safe to push now. I'll take care
of it.


Signed-off-by: Caolán McNamara <[email protected]>
---
libstdc++-v3/include/bits/regex.tcc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/include/bits/regex.tcc 
b/libstdc++-v3/include/bits/regex.tcc
index b94fe4490f7..84c15597436 100644
--- a/libstdc++-v3/include/bits/regex.tcc
+++ b/libstdc++-v3/include/bits/regex.tcc
@@ -125,7 +125,7 @@ namespace __detail
      typedef std::ctype<char_type> __ctype_type;
      const __ctype_type& __fctyp(use_facet<__ctype_type>(_M_locale));

-      static const char* __collatenames[] =
+      static const char* const __collatenames[] =
        {
          "NUL",
          "SOH",
--
2.49.0



Reply via email to