Skip to content

cmd/compile: internal compiler error: exporter: unexpected type alias in inlined function body #24173

Closed
@skipor

Description

@skipor

What version of Go are you using (go version)?

go version go1.10 darwin/amd64

Does this issue reproduce with the latest release?

Yes

What did you do?

package main
type mapAlias = map[interface{}]interface{}
func main() {
	println(mapAlias{})
}
func Foo() {
	println(mapAlias{}) // Works when commented. 
}

https://play.golang.org/p/ukZwewCW0be

What did you expect to see?

The program compiles and print result.

What did you see instead?

<autogenerated>:1:0: internal compiler error: exporter: unexpected type alias mapAlias in inlined function body

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions