You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ python /var/tmp/main.py
Traceback (most recent call last):
File "/var/tmp/main.py", line 23, in <module>
main()
File "/var/tmp/main.py", line 21, in main
bar(foo_ptr)
File "/var/tmp/main.py", line 15, in bar
foo: Pointer[Foo] = c_p_pointer(foo_ptr, Foo)
File "/home/dylon/Workspace/lpython/src/runtime/lpython/lpython.py", line 526, in c_p_pointer
targettype_ptr = convert_type_to_ctype(targettype)
File "/home/dylon/Workspace/lpython/src/runtime/lpython/lpython.py", line 262, in convert_type_to_ctype
return convert_to_ctypes_Structure(arg)
File "/home/dylon/Workspace/lpython/src/runtime/lpython/lpython.py", line 395, in convert_to_ctypes_Structure
fields.append((name, convert_type_to_ctype(ltype_)))
File "/home/dylon/Workspace/lpython/src/runtime/lpython/lpython.py", line 264, in convert_type_to_ctype
raise NotImplementedError("Type %r not implemented" % arg)
NotImplementedError: Type <enum 'Value'> not implemented
The text was updated successfully, but these errors were encountered:
With the workarounds I mention in #1814, I've hit another bug which is that I cannot use
c_p_pointer
on pointers to structs with enum fields:The text was updated successfully, but these errors were encountered: