Ticket #172 (closed defect: fixed)
Compiler crash for non-builtin ValueError plus numpy cimport
| Reported by: | jasone | Owned by: | dagss |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.11 |
| Component: | Code Generation | Keywords: | |
| Cc: |
Description
The following code causes a cython crash (using cython-devel as of changeset 1523:965dc9fc3da7):
cimport numpy class ValueError(object): pass
Traceback (most recent call last):
[...]
File "/home/jasone/cython/hg/cython-devel/Cython/Compiler/Code.py", line 325, in add_interned_string_decl
if self.should_declare(entry.cname, entry):
File "/home/jasone/cython/hg/cython-devel/Cython/Compiler/Code.py", line 313, in should_declare
assert entry.type == other.type
AssertionError
Both entry.type and other.type claim to be <CArrayType None <CNumericType char>>, but they are definitely not equal (nor identical).
Note that numpy.pxd uses ValueError? in several places.
Change History
Note: See
TracTickets for help on using
tickets.
