Objective-C literals in macro functions don't compile
| Originator: | robb | ||
| Number: | rdar://11722431 | Date Originated: | 21-Jun-2012 03:31 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | 4F226a |
| Classification: | Serious Bug | Reproducible: | Always |
Summary:
When calling a macro function with an array literal that contains multiple elements, the LLVM yields a 'Extraneous closing brace('}')' error
Steps to Reproduce:
Try to compile
STAssertEqualObjects(@[@1, @2, @3], @[@1, @2, @3], @"Arrays are equal");
Expected Results:
It compiles
Actual Results:
It doesn't
Regression:
Notes:
Tested on Xcode 4.4 (4F226a)
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!