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: unassignedclangb...@nondot.org
          Reporter: nicolaswe...@gmx.de
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to