[LLVMbugs] [Bug 20633] New: c-index-test hits infinite loop in getRawCommentForAnyRedecl

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 12 08:57:17 PDT 2014


            Bug ID: 20633
           Summary: c-index-test hits infinite loop in
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: libclang
          Assignee: unassignedclangbugs at nondot.org
          Reporter: stevenwu at apple.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Running c-index-test and I hit an infinite loop in getRawCommentForAnyRedecl
(ASTContext.cpp). It is stuck in the following loop:
for (auto I : D->redecls())
operator++ is returning the same thing over and over.

It can be reproduced with a single objc source file with one line:
#import <objc/objc-class.h>

set environment variable CINDEXTEST_EDITING=1
run: c-index-test -test-load-source-reparse 3 local -c objc.m

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/20140812/6e9b8d36/attachment.html>

More information about the llvm-bugs mailing list