Building with std=gnu99 warns about binary `?:` with `gnu-conditional-omitted-operand`
| Originator: | heath.borders | ||
| Number: | rdar://27765765 | Date Originated: | 09-Aug-2016 10:15 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Version 8 beta 4 (8S188o) |
| Classification: | Other Bug | Reproducible: | Always |
I build with `std=gnu99` and `-Weverything` with some warnings disabled , but when I use `?:` as a binary operator, I get a `gnu-conditional-omitted-operand` warning. Steps to Reproduce: Build the following code: ``` NSURL *url = [NSURL URLWithString:@"http://example.com"]; NSString *absoluteString = url.absoluteString ?: @"null absoluteString"; Expected Results: No warning should be emitted. Actual Results: A `gnu-conditional-omitted-operand`
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!