[SR-838] expression was too complex to be solved in reasonable time #43450
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
OSX 10.11.3, (swiftlang-700.1.101.15 clang-700.1.81) and 3.0-dev (LLVM b361b0fc05, Clang 11493b0f62, Swift fc26104)
Additional Detail from JIRA
md5: fe202e8bfaf1fa66a16a05747307a3c6
Issue Description:
The following test case can't be compiled by swift. In a file named
main.swift
puttest_seconds()
and in a file named
time_nanos.swift
putCompiling from the commandline shows that the first expression is too complex:
If that line is commented out the test compiles in about 1.5 seconds. Using the latest development snapshot
swift-DEVELOPMENT-SNAPSHOT-2016-02-25-a-osx
the performance seems worse:With this version the compiler seems to be worse since even the easier subexpression has troubles being compiled. The compiler shouldn't have troubles with such simple expressions.
The text was updated successfully, but these errors were encountered: