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: unassignedclangb...@nondot.org
          Reporter: came...@moodycamel.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to