[SR-13248] Compiler crash (5.1.3) "while type-checking statement" #55688
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
Environment
Xcode: Version 11.3.1 (11C505)
macOS: 10.14.6 (18G5033)
Swift: Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15).
Additional Detail from JIRA
md5: b24279421f8f1c565dd703079d4b5041
Issue Description:
I wanted a string with all the ASCII digits, without typing them out by hand (too easy to miss one!), so I had no idea if the obvious approach would work but I thought it was worth a try:
Surprisingly, this crashed the compiler. The stack trace looks like this:
I tried looking for a duplicate, and there's many crashes "while type-checking statement", but I didn't see one that looked quite like this one.
The text was updated successfully, but these errors were encountered: