You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
marcrasimannequin opened this issue
Oct 30, 2019
· 4 comments
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
Oh, thanks for noticing the invalidity of this code! This was an attempt to reduce some more complex original code that also caused the crash, and I think that the original code was valid. If I manage to create some valid code that causes this crash, I'll post it here.
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
Additional Detail from JIRA
md5: ad604467b746116369fad9ef439e97a1
relates to:
Issue Description:
Using the Ubuntu 18.04 trunk development snapshot from October 28, 2019, running swiftc on the following code
Produces:
I also tried the same code with the 5.1.1 and 4.2.4 releases, and these also produced assertion failures, with slightly different messages:
4.2.4: /home/buildnode/jenkins/workspace/oss-swift-4.2-package-linux-ubuntu-18_04/llvm/include/llvm/ADT/Optional.h:160: T &&llvm::Optional<swift::ProtocolConformanceRef>::operator*() && [T = swift::ProtocolConformanceRef]: Assertion `hasVal' failed.
5.1.1: /home/buildnode/jenkins/workspace/oss-swift-5.1-package-linux-ubuntu-18_04/swift/lib/AST/ProtocolConformance.cpp:77: swift::ProtocolDecl *swift::ProtocolConformanceRef::getRequirement() const: Assertion `!isInvalid()' failed.
The text was updated successfully, but these errors were encountered: