http://llvm.org/bugs/show_bug.cgi?id=7986
Summary: poor diagnostic for leading mystery bytes
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=5411)
--> (http://llvm.org/bugs/attachment.cgi?id=5411)
testcase
This error took me a while to figure out:
nlewy...@ducttape:~$ llvm/Debug+Asserts/bin/clang++ x.cc -fsyntax-only
x.cc:1:1: error: expected unqualified-id
// Surprise!
^
1 error generated.
it would've been awesome if clang had pointed out the unprintable characters at
the front of the file.
I should mention that gcc doesn't mind those characters at all but that's
probably part of proper UTF-8 support. Testcase attached!
--
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