[llvm-bugs] [Bug 27736] New: Crash during code completion

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 13 11:40:44 PDT 2016


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

            Bug ID: 27736
           Summary: Crash during code completion
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: cameron at moodycamel.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

The following simple code causes clang to crash (access violation from null
pointer) during code completion after the '->' arrow operator:

crashtest.c:
    struct S {
        unsigned x;
    };

    int main()
    {
        struct S s;
        return (int)(&s)->
    }

$ c-index-test -code-completion-at=crashtest.c:8:23 crashtest.c
libclang: crash detected in code completion
Unable to perform code completion!

-- 
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/20160513/accbbd10/attachment.html>


More information about the llvm-bugs mailing list