[llvm-bugs] [Bug 31314] New: crash when rewrite-objc meets self-increase operator(++)

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 8 02:02:10 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=31314

            Bug ID: 31314
           Summary: crash when rewrite-objc meets self-increase
                    operator(++)
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: imoldman.com at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

'clang -rewrite-objc test.m' will be crashed when test.m is

#import <Foundation/Foundation.h>

@interface A : NSObject
@property (nonatomic) int i;
@end

@implementation A
@end

int main() {
  A *a = [A new];
  ++a.i;
  return 0;
}



$ clang --version
Apple LLVM version 8.0.0 (clang-800.0.38)
Target: x86_64-apple-darwin15.5.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161208/3293579e/attachment.html>


More information about the llvm-bugs mailing list