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!