[LLVMbugs] [Bug 7986] New: poor diagnostic for leading mystery bytes
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Aug 24 15:59:37 PDT 2010
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: unassignedclangbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5411)
--> (http://llvm.org/bugs/attachment.cgi?id=5411)
testcase
This error took me a while to figure out:
nlewycky at 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.
More information about the llvm-bugs
mailing list