<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - clang-cl: Ignore or implement /diagnostics:caret, /Zc:ternary, and (on x64) /Gr and /Gz"
   href="https://bugs.llvm.org/show_bug.cgi?id=33237">33237</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-cl: Ignore or implement /diagnostics:caret, /Zc:ternary, and (on x64) /Gr and /Gz
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>4.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sfinae@hotmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18546" name="attach_18546" title="Hello World">attachment 18546</a> <a href="attachment.cgi?id=18546&action=edit" title="Hello World">[details]</a></span>
Hello World

This behavior isn't the end of the world, but it makes it harder to
simultaneously use cl.exe and clang-cl.exe for testing.

C:\Temp>type meow.cpp
#include <stdio.h>

int main() {
    puts("Cute fluffy kittens!");
}

C:\Temp>cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.11.25326 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]

C:\Temp>cl /EHsc /nologo /W4 meow.cpp
meow.cpp

C:\Temp>cl /EHsc /nologo /W4 /diagnostics:caret meow.cpp
meow.cpp

C:\Temp>cl /EHsc /nologo /W4 /Zc:ternary meow.cpp
meow.cpp

C:\Temp>cl /EHsc /nologo /W4 /Gr meow.cpp
meow.cpp

C:\Temp>cl /EHsc /nologo /W4 /Gz meow.cpp
meow.cpp

C:\Temp>clang-cl -v
clang version 4.0.0 (tags/RELEASE_400/final)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: S:\WCFB01\vctools\NonShip\ClangLLVM\bin

C:\Temp>clang-cl /EHsc /nologo /W4 meow.cpp

C:\Temp>clang-cl /EHsc /nologo /W4 /diagnostics:caret meow.cpp
clang-cl.exe: error: no such file or directory: '/diagnostics:caret'

C:\Temp>clang-cl /EHsc /nologo /W4 /Zc:ternary meow.cpp
clang-cl.exe: warning: argument unused during compilation: '/Zc:ternary'
[-Wunused-command-line-argument]

C:\Temp>clang-cl /EHsc /nologo /W4 /Gr meow.cpp
error: invalid argument '-fdefault-calling-conv=' not allowed with
'x86_64-pc-windows-msvc19.11.25326'

C:\Temp>clang-cl /EHsc /nologo /W4 /Gz meow.cpp
error: invalid argument '-fdefault-calling-conv=' not allowed with
'x86_64-pc-windows-msvc19.11.25326'</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>