diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-10-19 14:46:24 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-10-19 14:46:24 +0100 |
commit | 30f7c08d96556c4fdbe772240a085f5d8c2393a4 (patch) | |
tree | 35ec88ca464eff059af3b25ee38bb02d5f510e1e /libstdc++-v3 | |
parent | 7b1e8acfae2c1b4ee3c2199879783d2189ca3d0f (diff) | |
download | gcc-30f7c08d96556c4fdbe772240a085f5d8c2393a4.zip gcc-30f7c08d96556c4fdbe772240a085f5d8c2393a4.tar.gz gcc-30f7c08d96556c4fdbe772240a085f5d8c2393a4.tar.bz2 |
Fix compilation error with _GLIBCXX_PARALLEL
* include/bits/regex_executor.tcc (_Backref_matcher::_M_apply): Use
_GLIBCXX_STD_A to refer to normal mode algorithms.
* testsuite/28_regex/headers/regex/parallel_mode.cc: New test.
* testsuite/28_regex/headers/regex/std_c++0x_neg.cc: Remove empty
whitespace.
From-SVN: r265314
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/regex_executor.tcc | 4 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/28_regex/headers/regex/parallel_mode.cc | 22 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/28_regex/headers/regex/std_c++0x_neg.cc | 3 |
4 files changed, 30 insertions, 5 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ea4928f..c307c1f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,11 @@ 2018-10-19 Jonathan Wakely <jwakely@redhat.com> + * include/bits/regex_executor.tcc (_Backref_matcher::_M_apply): Use + _GLIBCXX_STD_A to refer to normal mode algorithms. + * testsuite/28_regex/headers/regex/parallel_mode.cc: New test. + * testsuite/28_regex/headers/regex/std_c++0x_neg.cc: Remove empty + whitespace. + * include/debug/map.h (map::erase(iterator)): Add abi-tag so that C++11 version mangles differently from incompatible C++98 version. * include/debug/multimap.h (multimap::erase(iterator)): Likewise. diff --git a/libstdc++-v3/include/bits/regex_executor.tcc b/libstdc++-v3/include/bits/regex_executor.tcc index b323889..68f1213 100644 --- a/libstdc++-v3/include/bits/regex_executor.tcc +++ b/libstdc++-v3/include/bits/regex_executor.tcc @@ -366,11 +366,11 @@ namespace __detail _BiIter __actual_end) { if (!_M_icase) - return std::__equal4(__expected_begin, __expected_end, + return _GLIBCXX_STD_A::__equal4(__expected_begin, __expected_end, __actual_begin, __actual_end); typedef std::ctype<_CharT> __ctype_type; const auto& __fctyp = use_facet<__ctype_type>(_M_traits.getloc()); - return std::__equal4(__expected_begin, __expected_end, + return _GLIBCXX_STD_A::__equal4(__expected_begin, __expected_end, __actual_begin, __actual_end, [this, &__fctyp](_CharT __lhs, _CharT __rhs) { diff --git a/libstdc++-v3/testsuite/28_regex/headers/regex/parallel_mode.cc b/libstdc++-v3/testsuite/28_regex/headers/regex/parallel_mode.cc new file mode 100644 index 0000000..d32df55 --- /dev/null +++ b/libstdc++-v3/testsuite/28_regex/headers/regex/parallel_mode.cc @@ -0,0 +1,22 @@ +// Copyright (C) 2018 Free Software Foundation, Inc. +// +// This file is part of the GNU ISO C++ Library. This library is free +// software; you can redistribute it and/or modify it under the +// terms of the GNU General Public License as published by the +// Free Software Foundation; either version 3, or (at your option) +// any later version. + +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License along +// with this library; see the file COPYING3. If not see +// <http://www.gnu.org/licenses/>. + +// { dg-do compile { target c++11 } } +// { dg-require-normal-mode "" } + +#define _GLIBCXX_PARALLEL +#include <regex> diff --git a/libstdc++-v3/testsuite/28_regex/headers/regex/std_c++0x_neg.cc b/libstdc++-v3/testsuite/28_regex/headers/regex/std_c++0x_neg.cc index 44aa140..85899aa 100644 --- a/libstdc++-v3/testsuite/28_regex/headers/regex/std_c++0x_neg.cc +++ b/libstdc++-v3/testsuite/28_regex/headers/regex/std_c++0x_neg.cc @@ -21,6 +21,3 @@ #include <regex> // { dg-error "ISO C.. 2011" "" { target *-*-* } 32 } - - - |