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

            Bug ID: 20312
           Summary: wrong tokenization around invalid UCNs
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

Consider:

  #define X(a) y##a
  #define yx Q(
  #define Q(x)
  X(x\u200e))

This code is ill-formed: it contains the identifier token 'x\u200e' which
contains the UCN '\u200e' which is not permitted in an identifier.

Clang treats this as two tokens instead, and as a result accepts the above
ill-formed code. This similar case is correctly rejected:

  X(x\u0065))

-- 
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