https://gcc.gnu.org/g:bdd45f4eee50957091c8ca8cc275ee75a7d73038
commit r16-7203-gbdd45f4eee50957091c8ca8cc275ee75a7d73038 Author: Patrick Palka <[email protected]> Date: Fri Jan 30 21:01:08 2026 -0500 libstdc++/regex: Suppress -Wpedantic warning about anonymous structs Fixes some modules testsuite compilation errors. libstdc++-v3/ChangeLog: * include/bits/regex_executor.tcc (_ExecutorFrameBase): Add #pragma GCC diagnostic to suppress -Wpedantic warning about anonymous structs. Diff: --- libstdc++-v3/include/bits/regex_executor.tcc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libstdc++-v3/include/bits/regex_executor.tcc b/libstdc++-v3/include/bits/regex_executor.tcc index 3412ad683e46..6c8deff2f21e 100644 --- a/libstdc++-v3/include/bits/regex_executor.tcc +++ b/libstdc++-v3/include/bits/regex_executor.tcc @@ -69,6 +69,8 @@ _GLIBCXX_BEGIN_INLINE_ABI_NAMESPACE(_V2) _S_fopcode_decrement_rep_count, }; +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpedantic" // anon struct struct _ExecutorFrameBase { _ExecutorFrameBase(_ExecutorFrameOpcode __op, _StateIdT __i) @@ -89,6 +91,7 @@ _GLIBCXX_BEGIN_INLINE_ABI_NAMESPACE(_V2) unsigned char _M_bytes[6]; _StateIdT _M_state_id; }; +#pragma GCC diagnostic pop template<typename _BiIter, bool _Trivial /* = is_trivially_copyable<_BiIter>::value */> struct _ExecutorFrame : _ExecutorFrameBase
