[SR-4532] Crash (EXC_BAD_INSTRUCTION) or endless loop with activated optimization #47109
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
optimized only
Flag: An issue whose reproduction requires optimized compilation
run-time crash
Bug → crash: Swift code crashed during execution
Attachment: Download
Environment
crash: Xcode 8.3 (8E162); macOS 10.12.4 (16E195)
no crash: Xcode 8.2; macOS 10.12.4 (16E195)
endless loop: swift-3.0.2-RELEASE; ubuntu16.04
Additional Detail from JIRA
md5: 259fbacaf2f7da0b69fb8a7b24b2b58f
Issue Description:
The following code crashs, but only with -O or -O -whole-module-optimization. It crashs on linux and macOS
The code works fine without optimization.
stacktrace:
The text was updated successfully, but these errors were encountered: