[llvm-bugs] [Bug 46796] New: #undef __STDC_IEC_559__ not caught with -pedanatic-errors

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 21 15:27:46 PDT 2020


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: unassignedclangbugs at nondot.org
          Reporter: tydeman at tybor.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200721/fe63238c/attachment.html>


More information about the llvm-bugs mailing list