http://llvm.org/bugs/show_bug.cgi?id=2767
Summary: -C output inconsistent with -E for trigraphs
Product: clang
Version: unspecified
Platform: PC
OS/Version: NetBSD
Status: NEW
Severity: minor
Priority: P2
Component: preprocessor
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
For the following two-line file:
??< ??>
/* ??< ??> */
Clang gives:
$ clang /tmp/test.c -E -C -trigraphs 2>/dev/null
# 1 "/tmp/test.c" 1
# 0 "/tmp/test.c"
# 1 "<predefines>" 1
# 1 "/tmp/test.c" 2
{ }
/* ??< ??> */
GCC gives:
$ cpp /tmp/test.c -E -C -trigraphs 2>/dev/null
# 1 "/tmp/test.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "/tmp/test.c"
{ }
/* { } */
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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