We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
go version
tip (bdc1bef)
No.
Compiling the following code, with a bodyless function but not assembly file or linknames.
package p func F()
$ go1.17 build x.go # command-line-arguments ./x.go:3:6: missing function body
$ go build x.go $ go tool compile -complete x.go
No error for both commands. cmd/go does pass -complete to the compiler correctly, but the compiler doesn't detect the error.
cc @mdempsky @aclements @thanm
The text was updated successfully, but these errors were encountered:
This seems -G=3 issue, or specifically, irgen since when it also does not handle //go:noescape:
-G=3
irgen
//go:noescape
package p func F() //go:noescape func f() {}
Sorry, something went wrong.
Change https://golang.org/cl/346470 mentions this issue: cmd/compile: fix irgen mis-handling invalid function declaration
cmd/compile: fix irgen mis-handling invalid function declaration
711e1c8
No branches or pull requests
What version of Go are you using (
go version
)?tip (bdc1bef)
Does this issue reproduce with the latest release?
No.
What did you do?
Compiling the following code, with a bodyless function but not assembly file or linknames.
What did you expect to see?
What did you see instead?
No error for both commands. cmd/go does pass -complete to the compiler correctly, but the compiler doesn't detect the error.
cc @mdempsky @aclements @thanm
The text was updated successfully, but these errors were encountered: