[SR-452] Recursive function without base case returns garbage value when compiled with -O #43069
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
optimized only
Flag: An issue whose reproduction requires optimized compilation
Environment
Swift 2.2-dev (December 31)
OS X El Capitan
Additional Detail from JIRA
md5: 546cfc45f510272795c24cb4aa0daa3d
Issue Description:
This code will crash (segfault) when compiled with -Onone, but returns garbage when compiled with -O.
I think it should always crash.
The text was updated successfully, but these errors were encountered: