Clang crash when I mistakenly wrote some Swift code in an Objective-C file

Originator:atipiksarl
Number:rdar://33102722 Date Originated:03-Jul-2017 09:38 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 8.3.3
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
I wrote some Swift code by mistake in an Objective-C file and crashed clang.

Steps to Reproduce:
I can’t attach the project but I attached the requested files to the bug report.

Expected Results:
No crash.

Actual Results:
/Users/david/Projects/geranium.iosapp/Geranium/Sources/FGENormalizationController.m:73:5: error: use of undeclared identifier 'normalizationKeypadViewController'; did you mean '_normalizationKeypadViewController'?
    normalizationKeypadViewController.toolsViewController.normalizeButton.isEnabled = false
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    _normalizationKeypadViewController
/Users/david/Projects/geranium.iosapp/Geranium/Sources/FGENormalizationController.m:31:64: note: '_normalizationKeypadViewController' declared here
@property (nonatomic, weak)     NormalizationKeypadViewController* normalizationKeypadViewController;
                                                                   ^
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /var/folders/pq/rqvdd9z5577fm6lnfq_kdk8r0000gn/T/FGENormalizationController-0dd172.m
clang: note: diagnostic msg: /var/folders/pq/rqvdd9z5577fm6lnfq_kdk8r0000gn/T/FGENormalizationController-0dd172.cache
clang: note: diagnostic msg: /var/folders/pq/rqvdd9z5577fm6lnfq_kdk8r0000gn/T/FGENormalizationController-0dd172.sh
clang: note: diagnostic msg: /var/folders/pq/rqvdd9z5577fm6lnfq_kdk8r0000gn/T/FGENormalizationController-0dd172.crash
clang: note: diagnostic msg: 

********************

Version:
Xcode 8.3.3

Notes:

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!