[LLVMbugs] [Bug 4568] Unhelpful "fatal error: error reading file data"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jun 19 17:36:56 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=4568
Kaelyn Uhrain <rikka at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Kaelyn Uhrain <rikka at google.com> 2012-06-19 19:36:56 CDT ---
As of r158772, clang gives useful error messages (even with assertions
enabled):
$ echo -n > test.c
$ echo -n > test.h
$ echo -n > test.h.pch
$ clang -include test.h test.c
error: input is not a PCH file: 'test.h.pch'
$ rm -f test.h.pch
$ mkdir test.h.pch
$ clang -include test.h test.c
error: unable to read PCH file test.h.pch: 'Is a directory'
--
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