[llvm-bugs] [Bug 35393] New: Windows clang-cl.exe: Unable to compile C++17 code

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 23 01:06:50 PST 2017


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

            Bug ID: 35393
           Summary: Windows clang-cl.exe: Unable to compile C++17 code
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: registrirayme at live.com
                CC: llvm-bugs at lists.llvm.org

Compiling with /std:c++17 or -XClang -std=c++17

#include "stdafx.h"
#include <string_view>


int main()
{
    std::string_view myOne = "Haha";

    std::printf ("%s", myOne.data ());

    return 0;
}

fails as the toolset is not using:

C:\\Program Files (x86)\\Microsoft Visual
Studio\\Preview\\Community\\VC\\Tools\\MSVC\\14.12.25827\\include"

but 

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include

-- 
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/20171123/d3ca9b34/attachment.html>


More information about the llvm-bugs mailing list