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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
fa945265
Commit
fa945265
authored
Mar 04, 2010
by
daniloaf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug on overloaded methods from templated C++ classes and correct
error for "opertator="
parent
026e3de9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
Cython/Compiler/Parsing.py
Cython/Compiler/Parsing.py
+1
-1
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+10
-6
No files found.
Cython/Compiler/Parsing.py
View file @
fa945265
...
@@ -2092,7 +2092,7 @@ def p_c_simple_declarator(s, ctx, empty, is_type, cmethod_flag,
...
@@ -2092,7 +2092,7 @@ def p_c_simple_declarator(s, ctx, empty, is_type, cmethod_flag,
error
(
s
.
position
(),
"Declarator should be empty"
)
error
(
s
.
position
(),
"Declarator should be empty"
)
s
.
next
()
s
.
next
()
cname
=
p_opt_cname
(
s
)
cname
=
p_opt_cname
(
s
)
if
s
.
sy
==
'='
and
assignable
:
if
name
!=
"operator"
and
s
.
sy
==
'='
and
assignable
:
s
.
next
()
s
.
next
()
rhs
=
p_simple_expr
(
s
)
rhs
=
p_simple_expr
(
s
)
else
:
else
:
...
...
Cython/Compiler/Symtab.py
View file @
fa945265
...
@@ -1560,7 +1560,6 @@ class CppClassScope(Scope):
...
@@ -1560,7 +1560,6 @@ class CppClassScope(Scope):
error
(
pos
,
"no matching function for call to "
\
error
(
pos
,
"no matching function for call to "
\
"%s::%s()"
%
(
temp_entry
.
scope
.
name
,
temp_entry
.
scope
.
name
))
"%s::%s()"
%
(
temp_entry
.
scope
.
name
,
temp_entry
.
scope
.
name
))
elif
not
self
.
default_constructor
:
elif
not
self
.
default_constructor
:
print
5
error
(
pos
,
"no matching function for call to %s::%s()"
%
error
(
pos
,
"no matching function for call to %s::%s()"
%
(
self
.
default_constructor
,
self
.
default_constructor
))
(
self
.
default_constructor
,
self
.
default_constructor
))
...
@@ -1607,11 +1606,16 @@ class CppClassScope(Scope):
...
@@ -1607,11 +1606,16 @@ class CppClassScope(Scope):
entry
.
pos
,
entry
.
pos
,
entry
.
cname
)
entry
.
cname
)
else
:
else
:
scope
.
declare_var
(
entry
.
name
,
# scope.declare_var(entry.name,
entry
.
type
.
specialize
(
values
),
# entry.type.specialize(values),
entry
.
pos
,
# entry.pos,
entry
.
cname
,
# entry.cname,
entry
.
visibility
)
# entry.visibility)
for
e
in
entry
.
all_alternatives
():
scope
.
declare_cfunction
(
e
.
name
,
e
.
type
.
specialize
(
values
),
e
.
pos
,
e
.
cname
)
return
scope
return
scope
...
...
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