In debug this code compiles and runs fine. However, with Swift Compiler Optimization turned on (`-O` with or without whole module optimization), a crashing binary is produced. The binary only outputs "one" and then crashes with a bad access exception.
Additionally, if you leave an empty body for the `init()` method, the compiler crashes.
Attached you'll find an example project to reproduce the issue and the crash log from the compiler.
This bug was found upon compiling a Release version of an App of ours after migrating to Swift 3. This bug was not present in the Swift 2 compiled version.
The text was updated successfully, but these errors were encountered:
@belkadan Hi, thanks for taking a look. I've downloaded the toolchain using the link you provided but the problem doesn't seem to be fixed. I've tried to compile the example project attached to the issue but got an "Abort trap: 6." I've attached the compile log below.