From d78b2b6c01243c59fc52937e1e3b0d84848a8fa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sun, 27 Jul 2025 21:27:00 +0100 Subject: [PATCH] libstdc++: make __collatenames array const in regex.tcc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit libstdc++-v3/ChangeLog: * include/bits/regex.tcc (regex_traits::lookup_collatename): Make __collatenames array const. Signed-off-by: Caolán McNamara --- 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 6ec259c2501..061b60042ec 100644 --- a/libstdc++-v3/include/bits/regex.tcc +++ b/libstdc++-v3/include/bits/regex.tcc @@ -125,7 +125,7 @@ namespace __detail typedef std::ctype __ctype_type; const __ctype_type& __fctyp(use_facet<__ctype_type>(_M_locale)); - static const char* __collatenames[] = + static const char* const __collatenames[] = { "NUL", "SOH",