--- a/sipbuild/generator/parser/instantiations.py Sun Jun 26 10:01:41 2022 +0100 +++ a/sipbuild/generator/parser/instantiations.py Sun Jul 17 09:41:16 2022 +0100 @@ -434,7 +434,8 @@ proto_name = proto_value.value.result.definition if proto_name.is_simple: - i_name = ScopedName.parse(template_string(proto_name, expansions)) + i_name = ScopedName.parse( + template_string(proto_name.base_name, expansions)) i_result = Argument(type=ArgumentType.DEFINED, definition=i_name) i_fcall = FunctionCall(result=i_result, args=proto_value.value.args)