[LLVMbugs] [Bug 20312] New: wrong tokenization around invalid UCNs
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jul 15 16:06:07 PDT 2014
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: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140715/973c4b91/attachment.html>
More information about the llvm-bugs
mailing list