cfobel/numpy__num_util — Issue #1: Type-mapping breaks when compiling with -O3 flag [gcc 4.5.2]
Author: cfobel
Created: 2012-03-05 21:49:33+00:00
State: open

When compiling num_util-related code using the -O3 (gcc 4.5.2), the following Python exception is raised whenever getEnum() is called:

ValueError: no mapping available for this type

The problem seems to be that the specialized getEnum template functions do not seem to be compiled correctly.
See `num_util.hpp` for the getEnum template definition and `num_util.cpp` for the specializations.