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

            Bug ID: 17804
           Summary: crash on invalid in preprocessor lexer
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

clang: TokenLexer.cpp:194: void clang::TokenLexer::ExpandFunctionArguments():
Assertion `ArgNo != -1 && "Token following # is not an argument?"' failed.

Testcase:

#define LOG_ON_ERROR(lvl) ::X x## #__LINE__;
LOG_ON_ERROR(0);

clang -E is sufficient to trigger the crash.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to