From a62c0a5b3f4eb7d9ca04704d2dfddc9a0795d64c Mon Sep 17 00:00:00 2001 From: DNKpp Date: Fri, 6 Oct 2023 02:44:18 +0200 Subject: [PATCH] fix: please gcc 10 --- tests/graph/Defines.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/graph/Defines.hpp b/tests/graph/Defines.hpp index e2df723c..3ff97088 100644 --- a/tests/graph/Defines.hpp +++ b/tests/graph/Defines.hpp @@ -281,16 +281,22 @@ constexpr auto toCommonRankedNode = [](const Nod constexpr auto toDepthRankedNode = [](const sg::decorator::DepthNode& node) { - return sg::decorator::DepthNode, sg::node::rank_t>>{ + // leave code as-is, because directly returning the temporary results in an ICE on gcc10 + sg::decorator::DepthNode, sg::node::rank_t>> sliced{ {toCommonRankedNode(node)}, node.depth }; + + return sliced; }; constexpr auto toPredecessorRankedNode = [](const sg::decorator::PredecessorNode& node) { - return sg::decorator::PredecessorNode, sg::node::rank_t>>{ + // leave code as-is, because directly returning the temporary results in an ICE on gcc10 + sg::decorator::PredecessorNode, sg::node::rank_t>> sliced{ {toCommonRankedNode(node)}, node.predecessor }; + + return sliced; };