From 8008e0991856b235baec15983a8ae1ccb1a8a56b Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 28 Jul 2023 09:33:28 -0700 Subject: [PATCH] Change stale_bus_members to work around MSVC issue Somehow, MSVC vector gets corrupted in certain cases. While the mechanism is unclear, using an unordered_set avoids this problem Fixes https://gitlab.com/kicad/code/kicad/-/issues/15217 (cherry picked from commit 7bd399235064b3f321792b2fbe40af85ff2ac3f0) --- eeschema/connection_graph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/connection_graph.cpp b/eeschema/connection_graph.cpp index 98e2cb0770..ad6e1331c6 100644 --- a/eeschema/connection_graph.cpp +++ b/eeschema/connection_graph.cpp @@ -2178,7 +2178,7 @@ void CONNECTION_GRAPH::propagateToNeighbors( CONNECTION_SUBGRAPH* aSubgraph, boo SCH_CONNECTION* conn = aSubgraph->m_driver_connection; std::vector search_list; std::unordered_set visited; - std::vector stale_bus_members; + std::unordered_set stale_bus_members; auto visit = [&]( CONNECTION_SUBGRAPH* aParent )