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
Swift 2.2 (December 18)
md5: 6e64deb605de903e90b3c21d02350b0a
Issue Description:
Xcode will autocomplete "all" to "alloca(Int)". However, trying to compile this program:
import Darwin let ptr = alloca(10)
will give a linker error:
Undefined symbols for architecture x86_64: "_alloca", referenced from: _main in main.swift.o ld: symbol(s) not found for architecture x86_64
I think either "alloca" should be allowed, or Xcode shouldn't suggest it, and it should trigger a less cryptic error message (as it does for "fork").
The text was updated successfully, but these errors were encountered:
Yeah, we should probably blacklist alloca in Swift code. It won't do anything reasonable.
Sorry, something went wrong.
`alloca` still fails in linking on Xcode 10 toolchain.
@swift-ci create
No branches or pull requests
Environment
Swift 2.2 (December 18)
Additional Detail from JIRA
md5: 6e64deb605de903e90b3c21d02350b0a
Issue Description:
Xcode will autocomplete "all" to "alloca(Int)".
However, trying to compile this program:
will give a linker error:
I think either "alloca" should be allowed, or Xcode shouldn't suggest it, and it should trigger a less cryptic error message (as it does for "fork").
The text was updated successfully, but these errors were encountered: