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
gccgo successfully compiles the following program:
package p func _() { f := complex _ = f }
while gc and go/types say:
go.go:3:9: error: invalid use of special builtin function ‘complex’; must be called go.go:3: use of builtin complex not in function call
The spec says:
The built-in functions do not have standard Go types, so they can only appear in call expressions; they cannot be used as function values.
http://golang.org/ref/spec#Built-in_functions
gcc version 6.0.0 2015070 (experimental) (GCC)
The text was updated successfully, but these errors were encountered:
@paranoiacblack
Sorry, something went wrong.
CL https://golang.org/cl/12543 mentions this issue.
golang/gofrontend@4c676d9
compiler: Don't allow builtin function values.
8b3c974
According to the spec, http://golang.org/ref/spec#Built-in_functions: "built-in functions do not have standard Go types, so they can only appear in call expressions; they cannot be used as function values." Fixes golang/go#11570. Reviewed-on: https://go-review.googlesource.com/12543 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226448 138bc75d-0d04-0410-961f-82ee72b054a4
2e2fc3b
According to the spec, http://golang.org/ref/spec#Built-in_functions: "built-in functions do not have standard Go types, so they can only appear in call expressions; they cannot be used as function values." Fixes golang/go#11570. Reviewed-on: https://go-review.googlesource.com/12543 From-SVN: r226448
No branches or pull requests
gccgo successfully compiles the following program:
while gc and go/types say:
The spec says:
http://golang.org/ref/spec#Built-in_functions
gcc version 6.0.0 2015070 (experimental) (GCC)
The text was updated successfully, but these errors were encountered: