Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: go1.11beta1 for loop with multiple conditions goes into infinite loop #26194
I have produced a minimal example of a bug seen when running under go1.11beta1 which causes for loops to go into an infinite loop when the condition contains multiple statements.
This seems to be due to an over-aggressive compiler optimisation, as the issue does not occur if I run with
What version of Go are you using (