diff --git a/tests/std/tests/P0896R4_ranges_alg_find_end/test.cpp b/tests/std/tests/P0896R4_ranges_alg_find_end/test.cpp index 87a0f93a87..7985291626 100644 --- a/tests/std/tests/P0896R4_ranges_alg_find_end/test.cpp +++ b/tests/std/tests/P0896R4_ranges_alg_find_end/test.cpp @@ -72,11 +72,12 @@ constexpr void smoke_test() { } } -constexpr void test_1559808() { +constexpr void test_devcom_1559808() { // Regression test for DevCom-1559808, an interaction between vector and the // use of structured bindings in the constexpr evaluator. - std::vector haystack(33, 42), needle(8, 42); // No particular significance to any numbers in this function + std::vector haystack(33, 42); // No particular significance to any numbers in this function + std::vector needle(8, 42); using size_type = std::vector::size_type; auto result = ranges::find_end(haystack, needle); @@ -93,8 +94,8 @@ int main() { STATIC_ASSERT((smoke_test(), true)); smoke_test(); - STATIC_ASSERT((test_1559808(), true)); - test_1559808(); + STATIC_ASSERT((test_devcom_1559808(), true)); + test_devcom_1559808(); } #ifndef _PREFAST_ // TRANSITION, GH-1030 diff --git a/tests/std/tests/P0896R4_ranges_alg_search/test.cpp b/tests/std/tests/P0896R4_ranges_alg_search/test.cpp index 9d768b70a6..13e1f08fa0 100644 --- a/tests/std/tests/P0896R4_ranges_alg_search/test.cpp +++ b/tests/std/tests/P0896R4_ranges_alg_search/test.cpp @@ -169,11 +169,12 @@ constexpr bool run_tests() { return true; } -constexpr void test_1559808() { +constexpr void test_devcom_1559808() { // Regression test for DevCom-1559808, an interaction between vector and the // use of structured bindings in the constexpr evaluator. - std::vector haystack(33, 42), needle(8, 42); // No particular significance to any numbers in this function + vector haystack(33, 42); // No particular significance to any numbers in this function + vector needle(8, 42); auto result = ranges::search(haystack, needle); assert(result.begin() == haystack.begin()); @@ -189,7 +190,7 @@ int main() { STATIC_ASSERT(run_tests()); run_tests(); - STATIC_ASSERT((test_1559808(), true)); - test_1559808(); + STATIC_ASSERT((test_devcom_1559808(), true)); + test_devcom_1559808(); } #endif // TEST_EVERYTHING diff --git a/tests/std/tests/P0896R4_ranges_alg_sort/test.cpp b/tests/std/tests/P0896R4_ranges_alg_sort/test.cpp index 6c47457133..a6c76bc5ad 100644 --- a/tests/std/tests/P0896R4_ranges_alg_sort/test.cpp +++ b/tests/std/tests/P0896R4_ranges_alg_sort/test.cpp @@ -52,7 +52,7 @@ struct instantiator { } }; -constexpr void test_1559808() { +constexpr void test_devcom_1559808() { // Regression test for DevCom-1559808, a bad interaction between constexpr vector and the use of structured bindings // in the implementation of ranges::sort. @@ -65,6 +65,6 @@ int main() { STATIC_ASSERT((test_random(), true)); test_random(); - STATIC_ASSERT((test_1559808(), true)); - test_1559808(); + STATIC_ASSERT((test_devcom_1559808(), true)); + test_devcom_1559808(); } diff --git a/tests/std/tests/P0896R4_views_split/test.cpp b/tests/std/tests/P0896R4_views_split/test.cpp index 18a067272d..934e564bad 100644 --- a/tests/std/tests/P0896R4_views_split/test.cpp +++ b/tests/std/tests/P0896R4_views_split/test.cpp @@ -321,7 +321,7 @@ constexpr bool instantiation_test() { return true; } -constexpr bool test_1559808() { +constexpr bool test_devcom_1559808() { // Regression test for DevCom-1559808, an interaction between vector and the // use of structured bindings in the constexpr evaluator. @@ -345,8 +345,8 @@ int main() { STATIC_ASSERT(instantiation_test()); instantiation_test(); -#if defined(__clang__) || defined(__EDG__) // TRANSITION, DevDiv-1516290 - STATIC_ASSERT(test_1559808()); -#endif // TRANSITION, DevDiv-1516290 - test_1559808(); +#if defined(__clang__) || defined(__EDG__) // TRANSITION, DevCom-1516290 + STATIC_ASSERT(test_devcom_1559808()); +#endif // TRANSITION, DevCom-1516290 + test_devcom_1559808(); }