Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go/ssa: fix crash when building map[*struct{}]bool{{}: true}
Since Go 1.5, if a key expression in a map literal is itself a composite literal, the type may be omitted. An & operation may be implied, but was not generated, resulting in a type mismatch crash. Added regression test. Also, added missing intrinsic math.hasSSE4 to interpreter. Fixes issue 13341 Change-Id: I6a5e560460cdcac295a500a3fc3738cbe8aa5853 Reviewed-on: https://go-review.googlesource.com/17123 Reviewed-by: Robert Griesemer <gri@golang.org>
- Loading branch information
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters