From 4a6ee21e2a742c96e731c7aba45d6718183bbf00 Mon Sep 17 00:00:00 2001 From: Trent Houliston Date: Sat, 26 Oct 2024 11:38:03 +1100 Subject: [PATCH] gcc is confused for some reason --- tests/tests/dsl/TaskScope.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/tests/dsl/TaskScope.cpp b/tests/tests/dsl/TaskScope.cpp index 2176f289..7157771c 100644 --- a/tests/tests/dsl/TaskScope.cpp +++ b/tests/tests/dsl/TaskScope.cpp @@ -65,7 +65,6 @@ class TestReactor : public test_util::TestBase { template void process_step(const Message& d) { - constexpr int Next = Current + 1; // Get the scope state before the inline event std::array pre_scopes = { @@ -74,10 +73,10 @@ class TestReactor : public test_util::TestBase { TaskScope>::in_scope(), }; - Data next_inline_data; + Data next_inline_data; next_inline_data.steps = d.steps; next_inline_data.steps[Current] = {Scope, true, pre_scopes}; - emit(std::make_unique>(next_inline_data)); + emit(std::make_unique>(next_inline_data)); // Get the scope state after the inline event std::array post_scopes = { @@ -85,10 +84,10 @@ class TestReactor : public test_util::TestBase { TaskScope>::in_scope(), TaskScope>::in_scope(), }; - Data next_normal_data; + Data next_normal_data; next_normal_data.steps = d.steps; next_normal_data.steps[Current] = {Scope, false, post_scopes}; - emit(std::make_unique>(next_normal_data)); + emit(std::make_unique>(next_normal_data)); } TestReactor(std::unique_ptr environment) : TestBase(std::move(environment)) {