Swift: crash in translateParallelExploded(swift::Lowering::AbstractionPattern, swift::CanTypeWrapper<swift::TupleType>)
| Originator: | dieter.komendera | ||
| Number: | rdar://20211581 | Date Originated: | 18-Mar-2015 09:48 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 6.3b3 6D543q |
| Classification: | Crash/Hang/Data Loss | Reproducible: | Always |
Summary:
This code using ReactiveCocoa reproducibly crashes the compiler.
import UIKit
import ReactiveCocoa
class ViewController: UIViewController {
var kaboom = MutableProperty("")
override func viewDidLoad() {
super.viewDidLoad()
kaboom.producer |> start(next: { a in
println(a)
})
}
}
0 com.apple.SourceKitService 0x00000001070daa33 (anonymous namespace)::TranslateArguments::translateParallelExploded(swift::Lowering::AbstractionPattern, swift::CanTypeWrapper<swift::TupleType>) + 131
1 com.apple.SourceKitService 0x00000001070dbba7 createThunk(swift::Lowering::SILGenFunction&, swift::SILLocation, TranslationKind, swift::Lowering::ManagedValue, swift::Lowering::AbstractionPattern, swift::CanTypeWrapper<swift::AnyFunctionType>, swift::Lowering::TypeLowering const&) + 1159
2 com.apple.SourceKitService 0x00000001070dc451 (anonymous namespace)::OrigToSubst::transformFunction(swift::Lowering::ManagedValue, swift::Lowering::AbstractionPattern, swift::CanTypeWrapper<swift::AnyFunctionType>) + 177
3 com.apple.SourceKitService 0x00000001070d78ce (anonymous namespace)::Transform::transform(swift::Lowering::ManagedValue, swift::Lowering::AbstractionPattern, swift::CanType, swift::Lowering::SGFContext) + 62
4 com.apple.SourceKitService 0x00000001070d8118 swift::Lowering::SILGenFunction::emitOrigToSubstValue(swift::SILLocation, swift::Lowering::ManagedValue, swift::Lowering::AbstractionPattern, swift::CanType, swift::Lowering::SGFContext) + 56
5 com.apple.SourceKitService 0x000000010707e8af swift::Lowering::SILGenFunction::emitApply(swift::SILLocation, swift::Lowering::ManagedValue, llvm::ArrayRef<swift::Substitution>, llvm::ArrayRef<swift::Lowering::ManagedValue>, swift::CanTypeWrapper<swift::SILFunctionType>, swift::Lowering::AbstractionPattern, swift::CanType, bool, llvm::Optional<swift::AbstractCC>, swift::Lowering::SGFContext) + 2079
6 com.apple.SourceKitService 0x00000001070a34b8 swift::Lowering::SILGenFunction::emitApplyOfDefaultArgGenerator(swift::SILLocation, swift::ConcreteDeclRef, unsigned int, swift::CanType, swift::Lowering::SGFContext) + 456
Steps to Reproduce:
Compile the attached project
Expected Results:
Compiles or error message
Actual Results:
Crash
Regression:
Also didn’t work in Xcode 6.2
Notes:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!