Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: failure to reject initialization loop #21752
cmd/compile accepts this bit of code, while go/types and gccgo reject it as an initialization cycle ("A refers to A"):
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.