New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/compile: internal compiler error: aliasing constant which is not registered #35157
Comments
Seems related to recent changes to poset |
git bisect points to c3a871f |
Change https://golang.org/cl/203438 mentions this issue: |
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. |
@rasky That sounds fine. |
Change https://golang.org/cl/200861 mentions this issue: |
Change https://golang.org/cl/203598 mentions this issue: |
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 <rasky@develer.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alberto Donizetti <alb.donizetti@gmail.com>
The following program:
Crashes the tip compiler with this error:
The text was updated successfully, but these errors were encountered: