diff options
| author | Jonathan Wakely <jwakely@redhat.com> | 2025-11-21 12:02:54 +0000 |
|---|---|---|
| committer | Jonathan Wakely <redi@gcc.gnu.org> | 2025-11-21 15:30:49 +0000 |
| commit | e8cf136b1a281db54edf5f824e8b08e5b757269f (patch) | |
| tree | 0325320eea496ac0a251a84c0e2351123b87e6d8 | |
| parent | 72afe64d3478d0dc926b21fbe2a48575794c62f2 (diff) | |
libstdc++: Include <ostream> in <regex> for debug mode
I don't know what changed, but I'm seeing some new failures:
FAIL: 23_containers/vector/capacity/114945.cc -std=gnu++11 (test for excess errors)
FAIL: 23_containers/vector/capacity/114945.cc -std=gnu++14 (test for excess errors)
FAIL: 23_containers/vector/capacity/114945.cc -std=gnu++17 (test for excess errors)
FAIL: 28_regex/basic_regex/85098.cc -std=gnu++11 (test for excess errors)
FAIL: 28_regex/basic_regex/85098.cc -std=gnu++14 (test for excess errors)
FAIL: 28_regex/basic_regex/85098.cc -std=gnu++17 (test for excess errors)
FAIL: 28_regex/simple_c++11.cc (test for excess errors)
libstdc++-v3/ChangeLog:
* include/bits/regex_automaton.tcc [_GLIBCXX_DEBUG]: Include
<ostream> so that _State_base::_M_print etc. can use it.
| -rw-r--r-- | libstdc++-v3/include/bits/regex_automaton.tcc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++-v3/include/bits/regex_automaton.tcc b/libstdc++-v3/include/bits/regex_automaton.tcc index 8a826469db1..4d566c62ecd 100644 --- a/libstdc++-v3/include/bits/regex_automaton.tcc +++ b/libstdc++-v3/include/bits/regex_automaton.tcc @@ -28,6 +28,10 @@ * Do not attempt to use it directly. @headername{regex} */ +#ifdef _GLIBCXX_DEBUG +# include <ostream> +#endif + namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION |
