[llvm-bugs] [Bug 33237] New: clang-cl: Ignore or implement /diagnostics:caret, /Zc:ternary, and (on x64) /Gr and /Gz

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 30 16:05:02 PDT 2017


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

            Bug ID: 33237
           Summary: clang-cl: Ignore or implement /diagnostics:caret,
                    /Zc:ternary, and (on x64) /Gr and /Gz
           Product: clang
           Version: 4.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sfinae at hotmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 18546
  --> https://bugs.llvm.org/attachment.cgi?id=18546&action=edit
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'

-- 
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/20170530/3f022a06/attachment-0001.html>


More information about the llvm-bugs mailing list