Skip to content

go/types: cyclical type declaration accepted w/o error #8699

@griesemer

Description

@griesemer
The program:

http://play.golang.org/p/HVo1iZeaiW

is accepted by gotype w/o an error.

Both gc and gccgo complain.

$ gccgo x.go
x.go:3:9: error: array bound is not constant
 type T [len(a)]int
         ^

Metadata

Metadata

Assignees

No one assigned

    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