-include <file> does not respect -I<path>

$ touch test.c
$ mkdir headers
$ touch headers/test.h
$ gcc -c test.c -I./headers -include test.h
$ clang -c test.c -I./headers -include test.h
In file included from <built-in>:103:
<command line>:1:10: fatal error: '/Users/rp/test.h' file not found
#include "/Users/rp/test.h"

$ clang --version
clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/trunk 69762)
Target: i386-apple-darwin9

Robert P.

Hi Robert,

Thanks for the report. We have this filed as PR3992:

I added a workaround which fixes this particular problem here: