[LLVMbugs] [Bug 17335] New: Lexer::getImmediateMacroName() fails to return a valid macro name for source locations corresponding to ## replacement tokens

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Sep 23 18:56:02 PDT 2013


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

            Bug ID: 17335
           Summary: Lexer::getImmediateMacroName() fails to return a valid
                    macro name for source locations corresponding to ##
                    replacement tokens
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: thonermann at coverity.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Given the following source:
  #define MACRO(X, Y) X ## Y
  MACRO(tok, en)

Preprocessing this will yield a single preprocessing token named 'token'.  A
call to Lexer::getImmediateMacroName() with the location corresponding to the
start of this token is expected to return "MACRO".  However, "X" is returned
instead.

-- 
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/20130924/6f2aa388/attachment.html>


More information about the llvm-bugs mailing list