[SR-6560] Runtime crash when accessing protocol type in optimized build #49110
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
run-time crash
Bug → crash: Swift code crashed during execution
Attachment: Download
Environment
Apple Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2)
Target: x86_64-apple-macosx10.9
Additional Detail from JIRA
md5: d748748ef979f52fd40a549e30d72c54
Issue Description:
Given three modules with the following setup:
Module 1 (Fmwk1):
Module 2 (Fmwk2):
Main:
The built executable crashes when accessing
myProtocolType
in main.swift. But only in optimized builds. Debug builds work fine.I've attached all three files as well as a build.sh to build and link the modules. Passing
-no
to the build.sh call builds without optimizations. By default it builds with optimizations.The text was updated successfully, but these errors were encountered: