tools/go/ssa/interp
Alan Donovan 977844c7af 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>
2015-11-23 19:08:17 +00:00
..
testdata go/ssa: fix crash when building map[*struct{}]bool{{}: true} 2015-11-23 19:08:17 +00:00
external.go go/ssa: fix crash when building map[*struct{}]bool{{}: true} 2015-11-23 19:08:17 +00:00
external_darwin.go go/ssa/interp: add syscall.Sysctl to Darwin. 2014-03-04 13:34:45 -05:00
external_freebsd.go go.tools/go/ssa/interp: add wrappers for Sysctl{,Uint32} intrinsics on FreeBSD 2014-04-18 15:58:12 -04:00
external_plan9.go go.tools/ssa/interp: add intrinsics for (*sync.Pool).{Get,Put}. 2014-01-27 13:11:16 -05:00
external_unix.go go.tools/ssa/interp: add intrinsics for (*sync.Pool).{Get,Put}. 2014-01-27 13:11:16 -05:00
external_windows.go go.tools/ssa/interp: add intrinsics for (*sync.Pool).{Get,Put}. 2014-01-27 13:11:16 -05:00
interp.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
interp_test.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
map.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
ops.go go/ssa/interp: fix bug causing subelements of aggregates to change address. 2015-03-13 18:22:38 +00:00
reflect.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
value.go go/ssa/interp: fix bug causing subelements of aggregates to change address. 2015-03-13 18:22:38 +00:00