[llvm-bugs] [Bug 39029] New: Include path with a leading slash is interpreted incorrectly on Windows

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 20 15:51:50 PDT 2018


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: unassignedclangbugs at nondot.org
          Reporter: jgorbe at google.com
                CC: llvm-bugs at lists.llvm.org

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180920/243d33f6/attachment-0001.html>


More information about the llvm-bugs mailing list