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
Boxiang Sun
cython
Commits
333b8c79
Commit
333b8c79
authored
Jul 18, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #549, compiler crash on bad template type.
parent
076235e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+5
-1
No files found.
Cython/Compiler/Nodes.py
View file @
333b8c79
...
@@ -832,7 +832,11 @@ class TemplatedTypeNode(CBaseTypeNode):
...
@@ -832,7 +832,11 @@ class TemplatedTypeNode(CBaseTypeNode):
else
:
else
:
template_types
=
[]
template_types
=
[]
for
template_node
in
self
.
positional_args
:
for
template_node
in
self
.
positional_args
:
template_types
.
append
(
template_node
.
analyse_as_type
(
env
))
type
=
template_node
.
analyse_as_type
(
env
)
if
type
is
None
:
error
(
template_node
.
pos
,
"unknown type in template argument"
)
return
error_type
template_types
.
append
(
type
)
self
.
type
=
base_type
.
specialize_here
(
self
.
pos
,
template_types
)
self
.
type
=
base_type
.
specialize_here
(
self
.
pos
,
template_types
)
elif
base_type
.
is_pyobject
:
elif
base_type
.
is_pyobject
:
...
...
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