From e4d4c43cc8f446d63ba3b0e94894f0934c4a9a99 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 24 Dec 2009 21:11:45 +0000 Subject: [PATCH] Define the new operator<< for sets into namespace std, so that argument-dependent lookup can find it. This is another case where an LLVM bug (not making operator<< visible) was masked by a GCC bug (looking in the global namespace when it shouldn't). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92144 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/ADT/DeltaAlgorithmTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unittests/ADT/DeltaAlgorithmTest.cpp b/unittests/ADT/DeltaAlgorithmTest.cpp index 362892207f5..a1884cd8f3a 100644 --- a/unittests/ADT/DeltaAlgorithmTest.cpp +++ b/unittests/ADT/DeltaAlgorithmTest.cpp @@ -13,6 +13,8 @@ #include using namespace llvm; +namespace std { + std::ostream &operator<<(std::ostream &OS, const std::set &S) { OS << "{"; @@ -26,6 +28,8 @@ std::ostream &operator<<(std::ostream &OS, return OS; } +} + namespace { class FixedDeltaAlgorithm : public DeltaAlgorithm {