Skip to content

cmd/compile: internal error on call with parenthesized builtin #63436

Closed
@jba

Description

@jba

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

$ go version
go version devel go1.22-6e8caefc19 Fri Oct 6 22:31:47 2023 +0000 linux/amd64 

Does this issue reproduce with the latest release?

Yes.

What operating system and processor architecture are you using (go env)?

linux/amd64

What did you do?

package main

import "fmt"

func main() {
	x := []int{1, 2, 3}
	x = (append)(x, 4)
	fmt.Println(x)
}

What did you expect to see?

success

What did you see instead?

<unknown line number>: internal compiler error: panic: runtime error: invalid memory address or nil pointer dereference

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions