Skip to content

cmd/compile: make alias decls work correctly under all circumstances #25838

Closed
@griesemer

Description

@griesemer

[edit: This is now the umbrella issue for work on alias declarations. This includes parameterized alias declarations; see issue #46477. It also includes proper names for aliases in error messages.]

The original fix for #18640 was only partially correct. However, removing that incorrect code leads to another cycle related issue for the test case:

type (
	e = f
	f = g
	g = []h
	h i
	i = j
	j = e
)

Left the original, partially correct code in place for now as it's not wrong, it just doesn't cover the expected cases and it appears to circumvent this issue.

Marking for 1.11 if we get to it but it's not a showstopper.

Commented out this test case in test/fixedbugs/issue18640.go for now.

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.early-in-cycleA change that should be done early in the 3 month dev cycle.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions