https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101571
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
We should also do this:
--- a/libstdc++-v3/testsuite/util/testsuite_iterators.h
+++ b/libstdc++-v3/testsuite/util/testsuite_iterators.h
@@ -175,10 +175,14 @@ namespace __gnu_test
#if __cplusplus >= 201103L
template<typename U>
void operator,(const U&) const = delete;
+
+ void operator&() const = delete;
#else
private:
template<typename U>
void operator,(const U&) const;
+
+ void operator&() const;
#endif
};
@@ -288,10 +292,14 @@ namespace __gnu_test
#if __cplusplus >= 201103L
template<typename U>
void operator,(const U&) const = delete;
+
+ void operator&() const = delete;
#else
private:
template<typename U>
void operator,(const U&) const;
+
+ void operator&() const;
#endif
};