From 14bf16f84f7cbe00fd8df598ef1efe6855395dfd Mon Sep 17 00:00:00 2001 From: Rolf Heilemann Myhre Date: Wed, 22 Nov 2023 15:58:35 +0100 Subject: [PATCH] add fix --- loki/expression/mappers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loki/expression/mappers.py b/loki/expression/mappers.py index 0849ecff9..a3aff74c6 100644 --- a/loki/expression/mappers.py +++ b/loki/expression/mappers.py @@ -597,6 +597,8 @@ def map_variable_symbol(self, expr, *args, **kwargs): if expr.scope is None: if parent is expr.parent and not is_type_changed: return expr + elif not is_type_changed: + return expr.clone(parent=parent) return expr.clone(parent=parent, type=new_type) if parent is expr.parent: