Skip to content

cmd/compile: tip crashes on too-large package-level array declarations #49814

@zigo101

Description

@zigo101

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

$ go version
go version devel go1.18-fad67f8a53 Sat Nov 27 01:14:21 2021 +0000 linux/amd64

Does this issue reproduce with the latest release?

Tip only.

What did you do?

package main

var X [1<<50]byte

func main() {}

What did you expect to see?

Not crash, just fails to compile.

What did you see instead?

Crash

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions