[LLVMbugs] [Bug 17804] New: crash on invalid in preprocessor lexer

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 4 14:12:07 PST 2013


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: unassignedclangbugs at nondot.org
          Reporter: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131104/6ca4f05b/attachment.html>


More information about the llvm-bugs mailing list