From 2acb70965451b3859a0ef1232fd35501e217fd09 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 4 Nov 2014 16:54:49 +0000 Subject: [PATCH] * testsuite/util/testsuite_allocator.h (operator==): Fix recursion. From-SVN: r217090 --- libstdc++-v3/ChangeLog | 2 ++ libstdc++-v3/testsuite/util/testsuite_allocator.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 8cb7675f6a5..e11a9a752e3 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -23,6 +23,8 @@ * include/parallel/numeric.h: Do not use default arguments in function template redeclarations (definitions). + * testsuite/util/testsuite_allocator.h (operator==): Fix recursion. + 2014-11-03 Paolo Carlini * include/parallel/algo.h: Do not use default arguments in function diff --git a/libstdc++-v3/testsuite/util/testsuite_allocator.h b/libstdc++-v3/testsuite/util/testsuite_allocator.h index 8edc0a5ad78..dec8d1a965d 100644 --- a/libstdc++-v3/testsuite/util/testsuite_allocator.h +++ b/libstdc++-v3/testsuite/util/testsuite_allocator.h @@ -209,7 +209,7 @@ namespace __gnu_test { const Alloc1& alloc1 = lhs; const Alloc2& alloc2 = rhs; - return lhs == rhs; + return alloc1 == alloc2; } template -- 2.30.2