From ec332f1b44acfdc8fd08680ea75b9f3c23626cd0 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 8 May 2018 17:21:35 +0100 Subject: [PATCH] Make std::regex automata use non-debug vector in Debug Mode * include/bits/regex_automaton.h (_NFA_base::_M_paren_stack, _NFA): Use normal std::vector even in Debug Mode. From-SVN: r260046 --- libstdc++-v3/ChangeLog | 3 +++ libstdc++-v3/include/bits/regex_automaton.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 4f980ca21df..8c03e2f1d92 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2018-05-08 Jonathan Wakely + * include/bits/regex_automaton.h (_NFA_base::_M_paren_stack, _NFA): + Use normal std::vector even in Debug Mode. + PR libstdc++/85672 * include/Makefile.am [!ENABLE_FLOAT128]: Change c++config.h entry to #undef _GLIBCXX_USE_FLOAT128 instead of defining it to zero. diff --git a/libstdc++-v3/include/bits/regex_automaton.h b/libstdc++-v3/include/bits/regex_automaton.h index bf51df79097..ff87dcc245d 100644 --- a/libstdc++-v3/include/bits/regex_automaton.h +++ b/libstdc++-v3/include/bits/regex_automaton.h @@ -210,7 +210,7 @@ namespace __detail _M_sub_count() const { return _M_subexpr_count; } - std::vector _M_paren_stack; + _GLIBCXX_STD_C::vector _M_paren_stack; _FlagT _M_flags; _StateIdT _M_start_state; _SizeT _M_subexpr_count; @@ -219,7 +219,7 @@ namespace __detail template struct _NFA - : _NFA_base, std::vector<_State> + : _NFA_base, _GLIBCXX_STD_C::vector<_State> { typedef typename _TraitsT::char_type _Char_type; typedef _State<_Char_type> _StateT; -- 2.30.2