aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std/regex
diff options
context:
space:
mode:
authorTim Shen <timshen@google.com>2014-07-01 03:05:45 +0000
committerTim Shen <timshen@gcc.gnu.org>2014-07-01 03:05:45 +0000
commit5bcb66dffabd20f12fd8392820aa7dd00280091e (patch)
treeb3f29a323adc663c3b20144ef5bf212c5599c09e /libstdc++-v3/include/std/regex
parentad9ec7b3c5969c776bc28e18292be09981abaa6a (diff)
downloadgcc-5bcb66dffabd20f12fd8392820aa7dd00280091e.zip
gcc-5bcb66dffabd20f12fd8392820aa7dd00280091e.tar.gz
gcc-5bcb66dffabd20f12fd8392820aa7dd00280091e.tar.bz2
re PR testsuite/61061 (FAIL: g++.dg/inherit/covariant7.C)
PR libstdc++/61061 PR libstdc++/61582 * include/bits/regex_automaton.h (_NFA<>::_M_insert_state): Add a NFA state limit. If it's exceeded, regex_constants::error_space will be throwed. * include/bits/regex_automaton.tcc (_StateSeq<>::_M_clone): Use map (which is sparse) instead of vector. This reduce n times clones' cost from O(n^2) to O(n). * include/std/regex: Add map dependency. * testsuite/28_regex/algorithms/regex_match/ecma/char/61601.cc: New testcase. From-SVN: r212185
Diffstat (limited to 'libstdc++-v3/include/std/regex')
-rw-r--r--libstdc++-v3/include/std/regex1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++-v3/include/std/regex b/libstdc++-v3/include/std/regex
index 9161f48..470772af 100644
--- a/libstdc++-v3/include/std/regex
+++ b/libstdc++-v3/include/std/regex
@@ -50,6 +50,7 @@
#include <string>
#include <utility>
#include <vector>
+#include <map>
#include <cstring>
#include <bits/regex_constants.h>