Skip to content

cmd/cgo/internal/test: build error on macOS 26 in Go 1.25 #77998

Description

@dmitshur

The recently added darwin/arm64 builder with macOS 26 (issue #76798) uncovers a failing test on release-branch.go1.25:

I can reproduce locally with:

# (with macOS 26)
$ GOTOOLCHAIN=go1.25.8 go build cmd/cgo/internal/test
go: downloading go1.25.8 (darwin/arm64)
# cmd/cgo/internal/test [cmd/cgo/internal/test.test]
.../cmd/cgo/internal/test/test.go:250:16: error: variable length array folded to constant array as an extension [-Werror,-Wgnu-folding-constant]

On macOS 15, it works fine, on macOS 26 it fails as above.

Doesn't happen with Go 1.26.1 or tip.

CC @golang/darwin, @prattmic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.OS-DarwinTestingAn issue that has been verified to require only test changes, not just a test failure.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions