LLVM Crash

Originator:oliver.drobnik
Number:rdar://28318984 Date Originated:15 Sept 2016
Status:Open Resolved:
Product:Developer Tools Product Version:8.0 (8A218a)
Classification:Crash Reproducible:Always
 
Summary:
The Xcode editor accepts the mentioned code as valid, but LLVM on building seg-faults.

Steps to Reproduce:
Paste this line into a single-view iOS app:

try! JSONSerialization.data(withJSONObject: !, options: [])

Expected Results:
Both the Xcode syntax checker as well as LLVM should report the parameter as invalid.

Actual Results:
- Xcode editor accepts the code as stated
- LLVM seg-faults (see attached screenshot)

Version:
Version 8.0 (8A218a), macOS 10.11.6 (15G31)

Notes:
Might be coming from the first parameter's type gotten changed to an Any in the the Grand Renaming. But it is a mystery to me why ! would be a valid Any.

Configuration:
iMac 27"

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!