Skip to content

gccgo: "error: esc already decorated call" on valid program #63495

Open
@ALTree

Description

@ALTree
$ gccgo --version
gccgo (Debian 13.2.0-4) 13.2.0
package main

func f(s string) int {
	return len([]byte(s))
}

func main() {
	for _, e := range make([]int, f("abc")) {
		println(e)
	}
}
$ gccgo crash.go 
go1: error: esc already decorated call f("abc")

Compiles and runs fine on gc.

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions