https://bugs.llvm.org/show_bug.cgi?id=39029

            Bug ID: 39029
           Summary: Include path with a leading slash is interpreted
                    incorrectly on Windows
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Compiling a source file like this:

  #include "/foo.h"
  int main() { return 0; }

will fail on Linux but finish successfully on Windows if "foo.h" exists in the
same directory.

MSVC treats a path that begins with '/' as absolute. The above example will
fail to compile unless there's a "foo.h" in the root directory.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to