<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Aug 1, 2016, at 5:11 PM, Joe Groff via swift-dev &lt;<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><blockquote type="cite" style="font-family: Palatino-Roman; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">On Jul 31, 2016, at 5:12 AM, Charles Lane via swift-dev &lt;<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>&gt; wrote:<br class=""><br class="">I get a segmentation fault 11 at compile time with the 07/29 toolchain &amp; Xcode 8 beta 3. Can anyone point me in right direction to fix this?<br class=""></blockquote><br style="font-family: Palatino-Roman; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Palatino-Roman; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Should be addressed by<span class="Apple-converted-space">&nbsp;</span></span><a href="https://github.com/apple/swift/pull/3918" style="font-family: Palatino-Roman; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">https://github.com/apple/swift/pull/3918</a><span style="font-family: Palatino-Roman; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">.</span><br style="font-family: Palatino-Roman; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Palatino-Roman; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Palatino-Roman; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">-Joe</span><br style="font-family: Palatino-Roman; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote></div><br class=""><div class="">August 2 nightly:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">ld: library not found for -lswiftDispatch for architecture x86_64</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">clang: error: linker command failed with exit code 1 (use -v to see invocation)</div></div><div class=""><br class=""></div><div class="">Code:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0); font-size: 12px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">//-----------------------------------------------------------------------------</span></div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0); font-size: 12px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">// MARK: Casting</span></div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0); font-size: 12px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">//-----------------------------------------------------------------------------</span></div><div style="margin: 0px; line-height: normal; font-family: Menlo; min-height: 19px; font-size: 12px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0); font-size: 12px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">// The Ashcast: Perform unsafe bitcast but only if the sizes equate</span></div><div style="margin: 0px; line-height: normal; font-family: Menlo; min-height: 19px; font-size: 12px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0); font-size: 12px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">// Update for 3.0 8/2</span></div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(187, 44, 162); font-size: 12px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">infix</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures" class="">operator</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> --&gt;</span></div><div style="margin: 0px; line-height: normal; font-family: Menlo; font-size: 12px;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">public</span><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">func</span><span style="font-variant-ligatures: no-common-ligatures" class=""> --&gt;&lt;T, U&gt;(value: </span><span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class="">T</span><span style="font-variant-ligatures: no-common-ligatures" class="">, target: </span><span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class="">U</span><span style="font-variant-ligatures: no-common-ligatures" class="">.Type) -&gt; </span><span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class="">U</span><span style="font-variant-ligatures: no-common-ligatures" class="">? {</span></div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(112, 61, 170); font-size: 12px;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&nbsp; &nbsp; </span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">guard</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures" class="">MemoryLayout</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&lt;</span><span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class="">T</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&gt;.</span><span style="font-variant-ligatures: no-common-ligatures" class="">size</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> == </span><span style="font-variant-ligatures: no-common-ligatures" class="">MemoryLayout</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&lt;</span><span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class="">U</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&gt;.</span><span style="font-variant-ligatures: no-common-ligatures" class="">size</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">else</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> { </span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">return</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">nil</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> }</span></div><div style="margin: 0px; line-height: normal; font-family: Menlo; font-size: 12px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; </span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">return</span><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">unsafeBitCast</span><span style="font-variant-ligatures: no-common-ligatures" class="">(value, to: target)</span></div><div style="margin: 0px; line-height: normal; font-family: Menlo; font-size: 12px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">}</span></div><div style="margin: 0px; line-height: normal; font-family: Menlo; min-height: 19px; font-size: 12px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0); font-size: 12px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">// Beta 5</span></div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(0, 76, 20); font-size: 12px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/// infix operator --&gt; {}</span></div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(0, 76, 20); font-size: 12px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/// public func --&gt;&lt;T, U&gt;(value: T, target: U.Type) -&gt; U? {</span></div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(0, 76, 20); font-size: 12px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/// &nbsp; &nbsp; guard sizeof(T.self) == sizeof(U.self) else { return nil }</span></div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(0, 76, 20); font-size: 12px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/// &nbsp; &nbsp; return unsafeBitCast(value, to: target)</span></div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(0, 76, 20); font-size: 12px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/// }</span></div><div style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; min-height: 19px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div></div><div class=""><br class=""></div><div class="">-- E</div></body></html>