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
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 softwareSILGenArea → compiler: The SIL generation stage
cowBuffer is a private computed property with a mutating getter. It crashes whenever a @inline(__always) public mutating function accesses the private mutating getter.
This is correct behavior, since you can't inline a reference to a private thing into another module. We'll have a diagnostic once we have a proper inlining model, but @inline(__always) isn't for public use.
I just hit this error too, but my @inline(__always) functions aren't public, so they can't possibly be inlined into another module. Most are internal, and a couple are local functions nested inside other functions. So why are these causing problems? It also only is a problem when compiling on Linux, it works just fine on Apple platforms.
Turns out I can actually keep most of them (it still works on any private function). But it doesn't work for internal functions (?!?) and it doesn't work for nested local functions, which is pretty weird.
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 softwareSILGenArea → compiler: The SIL generation stage
Environment
Swift 3.0-RELEASE and 3.0.1-PREVIEW-3 on Ubuntu
Additional Detail from JIRA
md5: f78687d4996fe265160c6e1857c8fef1
Issue Description:
cowBuffer
is a private computed property with a mutating getter. It crashes whenever a@inline(__always)
public mutating function accesses the private mutating getter.Full code here:
Value.swift
Crash:
The text was updated successfully, but these errors were encountered: