Commit 42aea5c5 authored by Vladimir Cerny's avatar Vladimir Cerny

cating to template pointer

parent 3279d914
...@@ -298,7 +298,8 @@ def p_typecast(s): ...@@ -298,7 +298,8 @@ def p_typecast(s):
s.next() s.next()
base_type = p_c_base_type(s) base_type = p_c_base_type(s)
is_memslice = isinstance(base_type, Nodes.MemoryViewSliceTypeNode) is_memslice = isinstance(base_type, Nodes.MemoryViewSliceTypeNode)
if not is_memslice and base_type.name is None: is_template =isinstance(base_type, Nodes.TemplatedTypeNode)
if not is_memslice and not is_template and base_type.name is None:
s.error("Unknown type") s.error("Unknown type")
declarator = p_c_declarator(s, empty = 1) declarator = p_c_declarator(s, empty = 1)
if s.sy == '?': if s.sy == '?':
......
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