[SR-13606] Swift Build fail with Error Segmentation fault: 11 #56041
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
code completion
Area → source tooling: code completion
compiler
The Swift compiler in itself
source tooling
Area: IDE support, SourceKit, and other source tooling
Attachment: Download
Environment
macOS 10.15.6
Xcode 12.2 beta
Additional Detail from JIRA
md5: 96551868b73c577121953990fee850b6
Issue Description:
I removed the old description, and replaced the test project with a shortened version.
Xcode 12 builds with code like these will crash, including the 12.0 - 12.3 beta.
{code: swift}
@propertyWrapper
final class AlterKeys<T> {
public var wrappedValue: T
public init(wrappedValue: @escaping @autoclosure () -> T, _ codingKeys: String...) {
self.wrappedValue = wrappedValue()
}
}
struct A {
// build fail in Xcode 12
@alterKeys("abc")
var key: Int = 0
}
The text was updated successfully, but these errors were encountered: