Swift 1.2b1: Compiler crash with errant curly brace
| Originator: | rix.rob | ||
| Number: | rdar://19773050 | Date Originated: | 09-Feb-2015 06:21 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode-Beta (6D520o) |
| Classification: | Crash/Hang/Data Loss | Reproducible: | Always |
Summary:
Found this by accident while refactoring to do away with the @autoclosure use in Memo ( :( :( :( :( :( ). Replaced a ( with a { and suddenly everything was on fire.
Steps to Reproduce:
1. Clone the repo & check out the branch for this PR: https://github.com/robrix/Memo/pull/8
2. Clone the dependencies: git submodule update --init --recursive
3. Build.
Expected Results:
I expected it to fail and give me some reasonable error along the lines of “um, I think you wanted a parenthesis, not a curly brace.”
Actual Results:
Crash.
Regression:
This doesn’t crash in Swift 1.1.
Notes:
Thanks to @jopamer for offering to look into this ❤️
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!