Compiler crash (segmentation fault) when declare a function with generic type that conform to a protocol and there are type casting in function
Originator: | pitiphong.ph | ||
Number: | rdar://20481483 | Date Originated: | 09-Apr-2015 07:35 PM |
Status: | Open | Resolved: | |
Product: | Developer Tools | Product Version: | Xcode 6.3 |
Classification: | Crash/Hang/Data Loss | Reproducible: | Always |
Summary: Compiler crash (segmentation fault) when declare a function with generic type that conform to a protocol and there are type casting in function Steps to Reproduce: 1. Open attached Playground file 2. Execute Playground Expected Results: The attached code should work correctly Actual Results: Compiler crash Regression: Notes: When I compile this code in a project, Xcode says that compiler is segmentation faults
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!