[libcxx] r324165 - Work around GCC constexpr initialization bug
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 2 17:48:21 PST 2018
Author: ericwf
Date: Fri Feb 2 17:48:21 2018
New Revision: 324165
URL: http://llvm.org/viewvc/llvm-project?rev=324165&view=rev
Log:
Work around GCC constexpr initialization bug
Modified:
libcxx/trunk/test/std/algorithms/alg.sorting/alg.lex.comparison/lexicographical_compare_comp.pass.cpp
Modified: libcxx/trunk/test/std/algorithms/alg.sorting/alg.lex.comparison/lexicographical_compare_comp.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/algorithms/alg.sorting/alg.lex.comparison/lexicographical_compare_comp.pass.cpp?rev=324165&r1=324164&r2=324165&view=diff
==============================================================================
--- libcxx/trunk/test/std/algorithms/alg.sorting/alg.lex.comparison/lexicographical_compare_comp.pass.cpp (original)
+++ libcxx/trunk/test/std/algorithms/alg.sorting/alg.lex.comparison/lexicographical_compare_comp.pass.cpp Fri Feb 2 17:48:21 2018
@@ -28,7 +28,7 @@ TEST_CONSTEXPR bool test_constexpr() {
int ia[] = {1, 2, 3};
int ib[] = {1, 3, 5, 2, 4, 6};
- std::greater<int> pred;
+ std::greater<int> pred{};
return !std::lexicographical_compare(std::begin(ia), std::end(ia), std::begin(ib), std::end(ib), pred)
&& std::lexicographical_compare(std::begin(ib), std::end(ib), std::begin(ia), std::end(ia), pred)
;
More information about the cfe-commits
mailing list