[SR-13253] Compiler hangs building invalid code #55693
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Attachment: Download
Environment
Xcode Version 12.0 beta 2 (12A6163b)
Apple Swift version 5.3 (swiftlang-1200.0.16.13 clang-1200.0.22.25)
Target: x86_64-apple-darwin19.6.0
Additional Detail from JIRA
md5: 58be4b51ed610315d0ccc118ec7f11f6
Issue Description:
I'm getting a hang compiling the attached invalid code:
/Applications/Xcode_12_beta_2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift /Users/damian/Downloads/test/test/ContentView.swift
/Users/damian/Downloads/test/test/ContentView.swift:9:25: error: cannot find 'totalseconds' in scope
let hours = totalseconds / 3600
^~~~~~~~~~~~
/Users/damian/Downloads/test/test/ContentView.swift:10:29: error: cannot find 'totalseconds' in scope
let remaining = totalseconds % 3600
^~~~~~~~~~~~
...hangs
The text was updated successfully, but these errors were encountered: