[SR-7309] Compiler crash : Segfault compiling closure with guard let self = self
#49857
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
type checker
Area → compiler: Semantic analysis
Attachment: Download
Environment
Xcode Version 9.3 beta 4 (9Q127n)
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -v
Apple Swift version 4.1 (swiftlang-902.0.43 clang-902.0.37.1)
Target: x86_64-apple-darwin17.4.0
Additional Detail from JIRA
md5: 3e1bae25fc2a85cb338683a4c729cc79
Issue Description:
I ran into this randomly experimenting with closure capture lists while reading The Swift Programming Language.
Run Cmd-U from Xcode with the attached project to reproduce.
The text was updated successfully, but these errors were encountered: