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

            Bug ID: 46796
           Summary: #undef __STDC_IEC_559__ not caught with
                    -pedanatic-errors
           Product: clang
           Version: 10.0
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

The C standard has [in Predefined macro names clause]: None of these macro
names ... shall be the subject of #define or #undef preprocessing directive.

Using clang with -pedantic-errors does not catch:
 #undef  __STDC_IEC_559__
 #define __STDC_IEC_559__ 1

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to