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
402dc50d
Commit
402dc50d
authored
Nov 09, 2012
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiler crash for invalid C++ base classes.
parent
cc6a2207
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
CHANGES.rst
CHANGES.rst
+8
-0
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+6
-1
No files found.
CHANGES.rst
View file @
402dc50d
...
...
@@ -25,6 +25,14 @@ Bugs fixed
* C++ class nesting was broken.
* Better checking for required nullary constructors for stack-allocated C++ instances.
* Remove module docstring in no-docstring mode.
* Fix specialization for varargs function signatures.
* Fix several compiler crashes.
Other changes
-------------
...
...
Cython/Compiler/Nodes.py
View file @
402dc50d
...
...
@@ -1206,7 +1206,12 @@ class CppClassNode(CStructOrUnionDefNode, BlockNode):
scope
=
None
if
self
.
attributes
is
not
None
:
scope
=
CppClassScope
(
self
.
name
,
env
,
templates
=
self
.
templates
)
base_class_types
=
[
b
.
analyse
(
scope
or
env
)
for
b
in
self
.
base_classes
]
def
base_ok
(
base_class
):
if
base_class
.
is_cpp_class
or
base_class
.
is_struct
:
return
True
else
:
error
(
self
.
pos
,
"Base class '%s' not a struct or class."
%
base_class
)
base_class_types
=
filter
(
base_ok
,
[
b
.
analyse
(
scope
or
env
)
for
b
in
self
.
base_classes
])
if
self
.
templates
is
None
:
template_types
=
None
else
:
...
...
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