From c7131211eec2f0260ed6ee836a8ff64d5df7870d Mon Sep 17 00:00:00 2001 From: Joeffrey Legaux Date: Wed, 4 Oct 2023 15:23:02 +0200 Subject: [PATCH] bugfix : do not hoist the symbols that are in the member dummies, instead of the routine dummies --- loki/transform/transform_inline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loki/transform/transform_inline.py b/loki/transform/transform_inline.py index dd7085304..ebd30bc9c 100644 --- a/loki/transform/transform_inline.py +++ b/loki/transform/transform_inline.py @@ -243,7 +243,7 @@ def _map_unbound_dims(var, val): # Get local variable declarations and hoist them decls = FindNodes(VariableDeclaration).visit(member.spec) - decls = tuple(d for d in decls if all(s.name.lower() not in routine._dummies for s in d.symbols)) + decls = tuple(d for d in decls if all(s.name.lower() not in member._dummies for s in d.symbols)) decls = tuple(d for d in decls if all(s not in routine.variables for s in d.symbols)) routine.spec.append(decls)