Skip to content

cmd/compile: large return value can take very long time to compile #14032

@dominikh

Description

@dominikh

The following piece of code takes several minutes to compile (I gave up after a while):

package main

func fn() (arr [1e10]bool) {
    println(len(arr))
    return
}

func main() {
    fn()
}

Possibly but not necessarily related to #14028.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions