Swift compiler "INTERNAL ERROR: this diagnostic should not be produced"
| Originator: | keithbsmiley | ||
| Number: | rdar://22441425 | Date Originated: | 26-Aug-2015 11:51 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 7 beta 6 7A192o |
| Classification: | Crash/Hang/Data Loss | Reproducible: | Always |
Summary: Xcode 7 beta 5 and 6 produce unexpected compiler errors from our unit tests. When testing an instance method on our `String` extension we began getting compiler crashes with Xcode 7 beta 5. These errors change each time the project is compiled, some examples include: - INTERNAL ERROR: this diagnostic should not be produced - INTERNAL ERROR: feature not implemented: 'Int' - Invalid character in source file Steps to reproduce: 1. Open the example project 2. Run the unit tests Expected results: The project compiles and the tests pass Actual results: The compiler produces warnings that don't seem to pertain to the tests Notes: - The only way we've been able to reproduce this is using Quick and Nimble as test frameworks. We're assuming it has something to do with the type inference happening in those libraries. - We got multiple warnings that implied there may be a character in a source file that the compiler was choking on. We filtered out all special characters (such as «) and had the same errors.
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!
Example project here: https://github.com/keith/radars/tree/master/TestCompilerError