Reject infinite size struct definition #682
Labels
flag: beta-required
Required for first beta release
good first issue
Good for newcomers
mentor
This issue is mentored
type: bug
What is wrong?
Currently, the below codes are not appropriately rejected and lead to ICE when it is instantiated.
Self recursion
Mutual recursion
How can it be fixed
Reject recursive struct definition in
analyzer
.This could be done by checking recursions in
analyzer::items::StructId::sink_diagnostics
usinganalyzer::items::StructId::struct_depency_graph
.The text was updated successfully, but these errors were encountered: