[SR-11030] Compiler crash when using -O flag 'While emitting IR SIL function' #53420
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
IRGen
LLVM IR generation
optimized only
Flag: An issue whose reproduction requires optimized compilation
Attachment: Download
Environment
macOS 10.14.3
Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)
Target: x86_64-apple-darwin18.2.0
Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5)
Target: x86_64-apple-darwin18.2.0
Additional Detail from JIRA
md5: bd85d64b9e83af473a1390c1661cea24
Issue Description:
Running swiftc -O, crashes the compiler with the following stack trace:
Removing AnyObject from InternalCoordinatorProtocol declaration avoids the crash.
Removing '-> Self' from InternalCoordinatorProtocol extension (and working around it) avoids the crash.
The text was updated successfully, but these errors were encountered: