Open ArachnidAbby opened 1 year ago
Describe the bug The compiler doesn't stop you from doing circular struct defs and LLVM tries to infinitely resolve the type. Resulting in a crash, especially when trying to determine the ABI size.
To Reproduce
struct X { element: Y; } struct Y { element: X; }
Expected behavior Compiler Error
Error given, or a screenshot of the bug
Nothing, I think it segfaults? I can't remember.
platform information
compiler-version: 0.6.0 os: Linux-x64
Describe the bug The compiler doesn't stop you from doing circular struct defs and LLVM tries to infinitely resolve the type. Resulting in a crash, especially when trying to determine the ABI size.
To Reproduce
Expected behavior Compiler Error
Error given, or a screenshot of the bug
platform information