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
Apple Swift version 4.1 (swiftlang-902.0.48 clang-902.0.37.1)
Target: x86_64-apple-darwin17.5.0
Additional Detail from JIRA
Votes
0
Component/s
Compiler
Labels
Bug
Assignee
None
Priority
Medium
md5: 0946fdc0953896146e8c4b40ed02a5f9
duplicates:
SR-3186 Crash when capture list references parameter of outer single-expression closure
Issue Description:
This is somewhat difficult to explain with words, so please see the code below. The function bar causes the compile to seg fault with the following error:
"Command failed due to signal: Segmentation fault: 11"
See the attached xcode project for a working minimal example.
I've been able to reproduce this. Interestingly, if I explicitly declare the type of the strong referenced variable, the segfault goes away. Modifying your example fixes the segfault:
Attachment: Download
Environment
MacBook Pro (15-inch, 2016)
Processor 2.7 GHz Intel Core i7
Memory 16 GB 2133 Mhz LPDDR3
Graphics Intel HD Graphics 530 1536 MB
macOS High Sierra Version 10.13.4
Xcode Version 9.3.1 (9E501)
Apple Swift version 4.1 (swiftlang-902.0.48 clang-902.0.37.1)
Target: x86_64-apple-darwin17.5.0
Additional Detail from JIRA
md5: 0946fdc0953896146e8c4b40ed02a5f9
duplicates:
Issue Description:
This is somewhat difficult to explain with words, so please see the code below. The function bar causes the compile to seg fault with the following error:
"Command failed due to signal: Segmentation fault: 11"
See the attached xcode project for a working minimal example.
The text was updated successfully, but these errors were encountered: