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
9d9657fa
Commit
9d9657fa
authored
Jan 01, 2015
by
scoder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #355 from ludvichzme/master
Fix condition in declare_cpp_class
parents
3a794069
2232c1e0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+1
-1
tests/compile/cpp_class_redefinition.pyx
tests/compile/cpp_class_redefinition.pyx
+12
-0
No files found.
Cython/Compiler/Symtab.py
View file @
9d9657fa
...
@@ -575,7 +575,7 @@ class Scope(object):
...
@@ -575,7 +575,7 @@ class Scope(object):
else
:
else
:
declare_inherited_attributes
(
entry
,
base_class
.
base_classes
)
declare_inherited_attributes
(
entry
,
base_class
.
base_classes
)
entry
.
type
.
scope
.
declare_inherited_cpp_attributes
(
base_class
.
scope
)
entry
.
type
.
scope
.
declare_inherited_cpp_attributes
(
base_class
.
scope
)
if
entry
.
type
.
scope
:
if
scope
:
declare_inherited_attributes
(
entry
,
base_classes
)
declare_inherited_attributes
(
entry
,
base_classes
)
scope
.
declare_var
(
name
=
"this"
,
cname
=
"this"
,
type
=
PyrexTypes
.
CPtrType
(
entry
.
type
),
pos
=
entry
.
pos
)
scope
.
declare_var
(
name
=
"this"
,
cname
=
"this"
,
type
=
PyrexTypes
.
CPtrType
(
entry
.
type
),
pos
=
entry
.
pos
)
if
self
.
is_cpp_class_scope
:
if
self
.
is_cpp_class_scope
:
...
...
tests/compile/cpp_class_redefinition.pyx
0 → 100644
View file @
9d9657fa
# tag: cpp
# mode: compile
cdef
extern
from
"templates.h"
:
cdef
cppclass
TemplateTest1
[
T
]:
TemplateTest1
()
T
value
int
t
T
getValue
()
cdef
cppclass
TemplateTest1
[
T
]
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