Open bbb23exposed opened 1 month ago
I'd be a little sceptical of turning this into a Cython error - at least with extern structs there's probably some C++ + Cython code that ends up relying on it.
I'd be a little sceptical of turning this into a Cython error - at least with extern structs there's probably some C++ + Cython code that ends up relying on it.
I didn't end up doing that. My patch does an element-by-element check for all members and substructs.
Describe the bug
Comparing two struct's equality causes invalid C code to be generated.
Code to reproduce the behaviour:
Expected behaviour
We should either generate a cython error or implement struct equality/inequality.
OS
No response
Python version
3.8
Cython version
dev
Additional context
No response