summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Bradshaw <robertwb@gmail.com>2016-12-04 04:31:35 -0800
committerRobert Bradshaw <robertwb@gmail.com>2016-12-04 04:31:40 -0800
commitf3f7980d5b6ee981f7805c6ad2ae3de426234b25 (patch)
tree3902b531b559b0ffa0dc7cb1719838823a6f33eb
parenta5ec19b6260b530c1845098e20fd61759fe65e5b (diff)
downloadcython-f3f7980d5b6ee981f7805c6ad2ae3de426234b25.tar.gz
Allow template deduction for partially specified types.
This fully resolves #1542.
-rw-r--r--Cython/Compiler/PyrexTypes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py
index 759750772..f3c57581f 100644
--- a/Cython/Compiler/PyrexTypes.py
+++ b/Cython/Compiler/PyrexTypes.py
@@ -3505,7 +3505,7 @@ class CppClassType(CType):
# Untemplated type?
return None
# TODO(robertwb): Actual type equality.
- elif self.empty_declaration_code() == actual.template_type.empty_declaration_code():
+ elif (self.template_type or self).empty_declaration_code() == actual.template_type.empty_declaration_code():
return reduce(
merge_template_deductions,
[formal_param.deduce_template_params(actual_param)