[llvm-bugs] [Bug 31312] New: clang talks about C++1z in diagnostic for C file

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 7 16:11:24 PST 2016


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

            Bug ID: 31312
           Summary: clang talks about C++1z in diagnostic for C file
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++14
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Nicos-MBP:llvm-build thakis$ cat asdf.c
_Static_assert(1);
Nicos-MBP:llvm-build thakis$ bin/clang -c asdf.c
asdf.c:1:17: warning: static_assert with no message is a C++1z extension
[-Wc++1z-extensions]
_Static_assert(1);
                ^
                , ""
1 warning generated.

a) This should say _Static_assert, not static_assert
b) It shouldn't talk about C++1z in C mode.

-- 
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/20161208/335da1b3/attachment-0001.html>


More information about the llvm-bugs mailing list