Comparing Class to NSString causes clang to hang
| Originator: | chris.s.patterson | ||
| Number: | rdar://13730305 | Date Originated: | 24-Apr-2013 |
| Status: | Closed | Resolved: | 11-Jun-2013 |
| Product: | Developer Tools | Product Version: | Xcode 4.6.2 |
| Classification: | Hang | Reproducible: | Always |
Summary: When a programmer (stupidly) try to compare a Class object to an NSString literal with the != operator, clang refuses to finish compiling the offending file and hangs, appearing to take forever to compile the file. Clang should report some kind of "type mismatch" error and move on. Steps to Reproduce: Download a demo Xcode project from github at URL: https://github.com/cpatterson/ClassStringBugDemo Attempt to build the Xcode project, which contains the offending code in the AppDelegate.m file. Expected Results: The compiler should generate some kind of "type mismatch" error on the offending code line. Actual Results: Xcode (clang) will hang while compiling that file. Reproduced with Xcode 4.6.1 and 4.6.2. UPDATED 11-Jun-2013 12:45 PM Chris Patterson: This issue has been verified as resolved in Xcode 5.0 (5A11314) and can be closed.
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!