[SR-7290] Segfault in "Lower Aggregate SIL Instructions to Multiple Scalar Operations" #49838
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
optimized only
Flag: An issue whose reproduction requires optimized compilation
Environment
Xcode 9.2, Swift 4.0.3
Additional Detail from JIRA
md5: 6ff76627c13d8bf3f16f74b0b3852774
Issue Description:
The following code produces a Segfault in optimized builds (Archiving an app)
with the error being
I could narrow it down and the crash can be avoided by not passing out the actual array but an empty array instead:
Oh, and the error type is
Sorry I couldn't come up with a distilled test-case yet, as there are a lot of types to reduce away here.
UPDATE:
In Xcode 9.3 the compiler traps now with the log:
The text was updated successfully, but these errors were encountered: