Hi,
I got a assert fail for gollvm when compiling test/fixedbugs/issue16870.go
the assert is in function names.cc / Gogo::type_descriptor_backend_name
It is caused by the example like this.
when there is a channel/map/... used with an empty interface like this:
func test(got, want interface{})
var ok interface{}
m:=make(map[int]int)
i, ok = m[0]
test(ok,false)
If we receive the bool value from the i, ok = m[0] and convert it to an
empty interface, the assert will be triggered
I found that the return value of functions like mapaccess2 are generated as
unnamed types, which means they use make_boolean_type() rather than
make_named_bool_type(), is this reasonable? and do you know how to fix it?
Thanks!
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/8a65edc8-f3f1-48c1-8bc6-c34f04a4aa88n%40googlegroups.com.