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
swift-ci opened this issue
May 26, 2017
· 2 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
Stackdump:
0.Whiletype-checkingextensionofUserat /var/folders/lk/wf8805dn77s3hjyqm399tnqc0000gp/T/playground1-cc22d8..swift:14:71.Whiletype-checkingdeclaration0x7f96fe396f40at /var/folders/lk/wf8805dn77s3hjyqm399tnqc0000gp/T/playground1-cc22d8..swift:15:22.Whilevalidating'name'at /var/folders/lk/wf8805dn77s3hjyqm399tnqc0000gp/T/playground1-cc22d8..swift:15:63.WhilevalidatingmaterializeForSetfornameat /var/folders/lk/wf8805dn77s3hjyqm399tnqc0000gp/T/playground1-cc22d8..swift:15:64.Whiletype-checkingmaterializeForSetfornameat /var/folders/lk/wf8805dn77s3hjyqm399tnqc0000gp/T/playground1-cc22d8..swift:15:6Assertionfailed: (FD->isGetterOrSetter() && "missing diags for other accessors"), functionisRepresentableInObjC, file /Users/buildnode/jenkins/workspace/oss-swift-4.0-package-osx/swift/lib/Sema/TypeCheckType.cpp, line3558.
It seems that the assert checks for getters or setters and the thing that is being typechecked is a "materializeForSet". If you remove the @objc or if you remove the setter, the compiler doesn't crash. If you move the @objc to the var it also doesn't crash.
Full crash report of a playground with that code is attached.
The text was updated successfully, but these errors were encountered:
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
Attachment: Download
Environment
macOS Sierra 10.12.5
Xcode 8.3.2
Toolchain: Swift 4.0 Snapshot 2017-05-17 (a)
Additional Detail from JIRA
md5: e5b606fbbb3e81f9594ec46b8fccd9d9
is duplicated by:
relates to:
Issue Description:
When using a toolchain from the swift-4.0-branch the compiler crashes with this code:
The compiler crashes because of an assertion:
It seems that the assert checks for getters or setters and the thing that is being typechecked is a "materializeForSet". If you remove the @objc or if you remove the setter, the compiler doesn't crash. If you move the @objc to the var it also doesn't crash.
Full crash report of a playground with that code is attached.
The text was updated successfully, but these errors were encountered: