[LLVMbugs] [Bug 12935] New: Bad diagnostic for missing comma in ObjC dictionary literal

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 24 08:11:24 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12935

             Bug #: 12935
           Summary: Bad diagnostic for missing comma in ObjC dictionary
                    literal
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


hummer:src thakis$ cat test.m
#include <Foundation/Foundation.h>

int main() {
  NSDictionary* attributes = @{
      NSFilePosixPermissions: [NSNumber numberWithShort:0755]
      NSFileGroupOwnerAccountName: @"wheel",
  };
}
hummer:src thakis$ third_party/llvm-build/Release+Asserts/bin/clang -o foo
test.m -framework Foundation
test.m:7:3: error: expected expression
  };
  ^
1 error generated.


Should be "missing ," 2 lines further up instead.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list