Skip to content

gccgo: aliases of *T should be embeddable if T is a defined type which is neither pointer nor interface #36153

@zigo101

Description

@zigo101

I create this issue per @ianlancetaylor's suggestion.

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

$ gccgo --version
gccgo (Debian 8.3.0-6) 8.3.0

Does this issue reproduce with the latest release?

yes.

What did you do?

package main

type P1 = *bool
type P2 = *struct{}

type T struct {
	P1
	P2
}

func main() {}

What did you expect to see?

Compiles okay.

What did you see instead?

Doesn't compile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions