A couple crashes related to associated types in 10.0 beta (10L176w)

Originator:crayment16
Number:rdar://41056468 Date Originated:June 12, 2018
Status: Resolved:
Product:iOS + SDK Product Version:10.0 beta (10L176w)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
Getting a couple crashes when using a Result enum with a generic associated type. One of the crashes occurs when passing a block property directly to an escaping block parameter. The other seems specific to having HTTPCookie objects be in the associated type of the enum case.

I have created and attached a demo project. Much easier to show than tell.  It also lives here: https://github.com/crayment/ResultCrash

Steps to Reproduce:
Run the tests in the demo project. On Xcode 9.4 the tests run fine (with new or old build system). On 10.0 beta (10L176w) two of the tests will demonstrate the crashes.

Expected Results:
No crash.

Actual Results:
Crashes with EXC_BAD_ACCESS.

Version:
10.0 beta (10L176w)

Notes:
The Swift lab at WWDC pointed out one of the crashes is in swift_getEnumCaseMultiPayload

Configuration:

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!