Commit 52b8a0e8 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix refernce-returning, exception-throwing functions.

Their temporaries can't be references.
parent 172f5203
......@@ -4738,6 +4738,10 @@ class SimpleCallNode(CallNode):
self.is_temp = 1
# func_type.exception_check = True
if self.is_temp and self.type.is_reference:
# TODO: Avoid the copy.
self.type = self.type.ref_base_type
# Called in 'nogil' context?
self.nogil = env.nogil
if (self.nogil and
......
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