commit baaad1f3a498a3cac87e84640ba8880532cd3032
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Fri Jun 13 11:52:37 2014 +0100
* include/std/regex: Add warning.
* src/c++11/regex.cc: Suppress warning.
* include/precompiled/stdc++.h: Do not include <regex>.
* testsuite/17_intro/using_namespace_std_tr1_neg.cc: Likewise.
* testsuite/28_regex/*: Remove.
@@ -105,7 +105,6 @@
#include <mutex>
#include <random>
#include <ratio>
-#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
@@ -35,6 +35,10 @@
# include <bits/c++0x_warning.h>
#else
+#ifndef _GLIBCXX_REGEX_NO_WARNING
+#warning The <regex> header is not implemented in versions older than GCC 4.9.0
+#endif
+
#include <algorithm>
#include <bitset>
#include <functional>
@@ -22,6 +22,7 @@
// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
// <http://www.gnu.org/licenses/>.
+#define _GLIBCXX_REGEX_NO_WARNING
#include <regex>
namespace std _GLIBCXX_VISIBILITY(default)
@@ -45,7 +45,6 @@
#include <ostream>
#include <queue>
#include <random>
-#include <regex>
#include <set>
#include <sstream>
#include <stack>
@@ -66,4 +65,4 @@ namespace gnu
using namespace std::tr1; // { dg-error "is not a namespace-name" }
}
-// { dg-error "expected namespace-name before" "" { target *-*-* } 66 }
+// { dg-error "expected namespace-name before" "" { target *-*-* } 65 }