[llvm-bugs] [Bug 48185] New: clang-cl support C language standard option /std:c11 and /std:c17

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Nov 14 22:01:50 PST 2020


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

            Bug ID: 48185
           Summary: clang-cl support C language standard option /std:c11
                    and /std:c17
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: zufuliu at 163.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

C language standard option /std:c11 and /std:c17 ware added in Visual Studio
2019 16.8 see
https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes#16.8.0

current clang-cl (as of Nov 14, 23cc838099e10b13a32e54105f4db0f1b7e3a842)
clang-cl /c /std:c11 test.c
clang-cl: warning: argument unused during compilation: '/std:c11'
[-Wunused-command-line-argument]

though `clang -c -std=c11 test.c` works.

test.c:
```
int add(int x, int y) {
    return x + y;
}
```

-- 
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/20201115/ef0ba6b4/attachment-0001.html>


More information about the llvm-bugs mailing list