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
Lukasa opened this issue
Oct 12, 2017
· 5 comments
Assignees
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 softwareLinuxPlatform: Linux
The expectation is that this code will compile and run, and indeed it does on Darwin. However, on Linux it triggers a compiler error and crashes the compiler with the following output:
Ah I misread... I thought that it doesn't crash on 4.0 🙂 If it doesn't crash on master that's most likely related to one of the changes I made to pick better bindings for subtypes, will investigate.
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 softwareLinuxPlatform: Linux
Environment
Additional Detail from JIRA
md5: 95180e1bc917582e052d639920195ca9
Issue Description:
It's possible to trigger a compiler crash on Linux when implicitly down casting inherited methods. The following sample code triggers the crash:
The expectation is that this code will compile and run, and indeed it does on Darwin. However, on Linux it triggers a compiler error and crashes the compiler with the following output:
The error can be resolved by doing an explicit cast: that is, by changing line 18 from
to
The text was updated successfully, but these errors were encountered: