Commit 605b784e authored by Robert Bradshaw's avatar Robert Bradshaw

Fix bug with fused types and non-bool vectors.

parent 9bf973eb
...@@ -3487,7 +3487,7 @@ class CppClassType(CType): ...@@ -3487,7 +3487,7 @@ class CppClassType(CType):
# (as the actual returned values are coercable to such, and # (as the actual returned values are coercable to such, and
# we don't support call expressions as lvalues). # we don't support call expressions as lvalues).
T = values[self.templates[0]] T = values[self.templates[0]]
if T.empty_declaration_code() == 'bool': if not T.is_fused and T.empty_declaration_code() == 'bool':
for bit_ref_returner in ('at', 'back', 'front'): for bit_ref_returner in ('at', 'back', 'front'):
if bit_ref_returner in specialized.scope.entries: if bit_ref_returner in specialized.scope.entries:
specialized.scope.entries[bit_ref_returner].type.return_type = T specialized.scope.entries[bit_ref_returner].type.return_type = T
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment