[SR-10015] values.map(Result.success)
raises assertion failure
#52418
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
non-optimized only
Flag: An issue whose reproduction requires non-optimized compilation
Environment
Apple Swift version 5.0-dev (LLVM 6ddb64316c, Swift e76b5a8)
Target: x86_64-apple-darwin18.2.0
macOS Mojave 10.14.3 18D109
MacBookPro15,1
Additional Detail from JIRA
md5: a54e2570604c4689bc20a3a12390f449
is duplicated by:
Issue Description:
The following code:
raises the following assertion:
This assertion is not raised when optimization `-O` is passed to swiftc (in this case, the code compiles and runs as expected).
This problem occurs in the latest (Feb 26) Trunk Development (master) build and also in Xcode 10.2 beta 3.
The text was updated successfully, but these errors were encountered: