Skip to content

gccgo: missing type descriptor for pointer to type alias defined in another package #36085

@cherrymui

Description

@cherrymui

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

go version go1.13 gccgo (GCC) 10.0.0 20191210 (experimental) linux/amd64

What did you do?

p.go

package p

type W = map[int32]interface{}

main.go

package main

import "p"

var w p.W
var X interface{} = &w

func main() {}

What did you expect to see?

Build succeeds.

What did you see instead?

# main
/tmp/src/main/main.go:6: error: undefined reference to 'type...1map.6int32.7interface.4.5'
collect2: error: ld returned 1 exit status

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions