Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
late call expansion asserts on randomly generated test cases #42236
What version of Go are you using (
Sorry-- since filing the bug I have been messing with the testcase generator to add support for blank params and struct fields, so most likely it is not emitting quite the same code with that seed.
Here's a reduced case for one of the failures:
That should produce "internal compiler error: 'Test1': Did not expect to find IDATA-immediate with non-trivial struct/array in it" on master at tip.
I'll see about sifting through the unpleasant code and creating (somewhat) minimized test cases.
Got it, cause is insufficiently imaginative (in terms of likely pathologies) code I fixed in a CL that I am about to submit, that is happy with your example. The bad case:
versus, done right, same function, for structures:
I.e., the array case should have recurred.
The new code (refactored, combined, renamed, sorry for all the changes):