Commit fbc78992 authored by Xavier Thompson's avatar Xavier Thompson

Store cypclass cast in temporary variable only for user-defined conversions

parent 3a92303a
......@@ -10914,7 +10914,7 @@ class TypecastNode(ExprNode):
if entry:
self.op_func_type = entry.type
if self.type.is_cyp_class:
self.is_temp = True
self.is_temp = self.overloaded
if self.type.is_ptr and self.type.base_type.is_cfunction and self.type.base_type.nogil:
op_type = self.operand.type
if op_type.is_ptr:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment