===================================================================
@@ -33,13 +33,14 @@
bool operator<(const Key&) const;
};
-typedef std::multimap<Key, int> MMap;
-
+#ifndef __GXX_EXPERIMENTAL_CXX0X__
// libstdc++/47628
void f()
{
+ typedef std::multimap<Key, int> MMap;
MMap mm;
mm.insert(MMap::value_type());
MMap::iterator i = mm.begin();
mm.erase(i);
}
+#endif
===================================================================
@@ -33,13 +33,14 @@
bool operator<(const Key&) const;
};
-typedef std::map<Key, int> Map;
-
+#ifndef __GXX_EXPERIMENTAL_CXX0X__
// libstdc++/47628
void f()
{
+ typedef std::map<Key, int> Map;
Map m;
m.insert(Map::value_type());
Map::iterator i = m.begin();
m.erase(i);
}
+#endif
===================================================================
@@ -1,6 +1,6 @@
// { dg-do compile }
-// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2008, 2009, 2010, 2011 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
@@ -31,15 +31,15 @@
// lib.pairs, pairs:
template <class T1, class T2> struct pair;
template <class T1, class T2>
- bool operator==(const pair<T1,T2>&, const pair<T1,T2>&);
+ _GLIBCXX_CONSTEXPR bool operator==(const pair<T1,T2>&, const pair<T1,T2>&);
template <class T1, class T2>
- bool operator< (const pair<T1,T2>&, const pair<T1,T2>&);
+ _GLIBCXX_CONSTEXPR bool operator< (const pair<T1,T2>&, const pair<T1,T2>&);
template <class T1, class T2>
- bool operator!=(const pair<T1,T2>&, const pair<T1,T2>&);
+ _GLIBCXX_CONSTEXPR bool operator!=(const pair<T1,T2>&, const pair<T1,T2>&);
template <class T1, class T2>
- bool operator> (const pair<T1,T2>&, const pair<T1,T2>&);
+ _GLIBCXX_CONSTEXPR bool operator> (const pair<T1,T2>&, const pair<T1,T2>&);
template <class T1, class T2>
- bool operator>=(const pair<T1,T2>&, const pair<T1,T2>&);
+ _GLIBCXX_CONSTEXPR bool operator>=(const pair<T1,T2>&, const pair<T1,T2>&);
template <class T1, class T2>
- bool operator<=(const pair<T1,T2>&, const pair<T1,T2>&);
+ _GLIBCXX_CONSTEXPR bool operator<=(const pair<T1,T2>&, const pair<T1,T2>&);
}