cmd/compile: failure to reject initialization loop #21752
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
cmd/compile accepts this bit of code, while go/types and gccgo reject it as an initialization cycle ("A refers to A"):
https://play.golang.org/p/jpUoGbyJqX
Related #21750. The common issue here is probably that we're performing initialization order analysis based on the optimized/inlined functions rather than the original Go source.
/cc @griesemer
The text was updated successfully, but these errors were encountered: