https://llvm.org/bugs/show_bug.cgi?id=28901
Bug ID: 28901 Summary: -Wexpansion-to-defined enabled without -pedantic Product: clang Version: unspecified Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Frontend Assignee: unassignedclangb...@nondot.org Reporter: bonz...@gnu.org CC: llvm-bugs@lists.llvm.org Classification: Unclassified Macros that expand to "defined" are undefined behavior according to the C standard, but clang, as a language extension, is implementing it by always treating "defined" as the preprocessor operator. While it is a good idea to add a separate warning flag for -Wexpansion-to-defined, it should only be enabled by default if -pedantic or perhaps -Wextra (and of course -Weverything) is provided. It should not be enabled by -Wall. -- 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