Swift compiler crashes when building Test when the framework uses complex Keypath

Originator:rc
Number:rdar://459 Date Originated:05/18/2020
Status:Open Resolved:
Product:Xcode Product Version:11.4.1
Classification:Light Reproducible:Yes
 
When we write a keypath that accesses a computed property that performs a cast to another type inside, the framework and the app compiles properly, but the Unit Test framework fails with Segmentation Fault: 11.

Please list the steps you took to reproduce the issue:
1. uncompress the attached project (https://drive.google.com/open?id=1Yk4NGpgBzasXkEexZ562yVTemyUZRpCc).
2. open the attached project. I used Xcode 11.4.1 (11E503a) and macOS Catalina 10.15.4
3. build the framework (cmd + B). It will compile successfully
4. build the unit tests (cmd + shift + U). The compiler will fail with segmentation fault 11.

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!