Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ALTree opened this issue Oct 10, 2023 · 1 comment
Open

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

ALTree opened this issue Oct 10, 2023 · 1 comment
Assignees
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@ALTree
Copy link
Member

ALTree commented Oct 10, 2023

$ 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.

@ALTree ALTree added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Oct 10, 2023
@ALTree ALTree added this to the Gccgo milestone Oct 10, 2023
@ianlancetaylor
Copy link
Contributor

FYI @cherrymui

@cherrymui cherrymui self-assigned this Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

3 participants