Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
e30da17d
Commit
e30da17d
authored
Sep 21, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cpp object call analysis
parent
7075537e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+3
-1
No files found.
Cython/Compiler/ExprNodes.py
View file @
e30da17d
...
...
@@ -6036,10 +6036,12 @@ class SimpleCallNode(CallNode):
args
=
self
.
args
if
func_type
.
is_cpp_class
:
overloaded_entry
=
self
.
function
.
type
.
scope
.
lookup
(
"operator()"
)
# operator() cannot be a non-member function
overloaded_entry
=
self
.
function
.
type
.
scope
.
lookup_here
(
"operator()"
)
if
overloaded_entry
is
None
:
self
.
type
=
PyrexTypes
.
error_type
self
.
result_code
=
"<error>"
error
(
self
.
pos
,
"Object of type '%s' is not callable."
%
self
.
function
.
type
)
return
self
.
function
=
CoerceFromCallable
(
self
.
function
)
elif
hasattr
(
self
.
function
,
'entry'
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment