[SR-12267] math sequence hangs up compiler #54695
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
Environment
swift --version
Swift version 5.1.3 (swift-5.1.3-RELEASE)
Target: x86_64-unknown-linux-gnu
Additional Detail from JIRA
md5: b830a3b4ab6dc26bd4f27733249c3aba
Issue Description:
Everything works as expected until I uncomment the line for eq3.
when I uncomment eq3 in the file test.swift, nothing gets printed and it just hangs..
test.swift:
print("got here")
var eq = 1.0
var eq1 = 1.0 - 1/3.0
var eq2 = 1.0 - 1/3.0 + 1/5.0
print("got here")
//var eq3 = 1.0 - 1/3.0 + 1/5.0 - 1/7.0
print("we never get here... 🙁")
swift test.swift
(no output), just hangs..
Any ideas?
The text was updated successfully, but these errors were encountered: