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: internal compiler error: aliasing constant which is not registered #35157
The following program:
Crashes the tip compiler with this error:
The bug happens because of a logic snafu in the master's version poset.
When poset learns that two nodes are equal, it aliases them (which means that it collapses them to the same node, adjusting in/out edges). When collapsing two nodes one of each is a constant, either node is kept, and the other is removed (it doesn't really matter which). If the removed node is in the constant map, the constant map should be updated to point to the other node.
The bug happens because the
I have a pending CL 200860 that change
If @randall77 agrees, we can just keep this bug open one day or two until I submit that CL. We can then add the testcase to fixedbugs.
Updates #35157 (the bug there was fixed by CL200861) Change-Id: I67069207b4cdc2ad4a475dd0bbc8555ecc5f534f Reviewed-on: https://go-review.googlesource.com/c/go/+/203598 Run-TryBot: Giovanni Bajo <email@example.com> TryBot-Result: Gobot Gobot <firstname.lastname@example.org> Reviewed-by: Alberto Donizetti <email@example.com>