[clang] [clang][Lex] Diagnose keywords in macro expansions (PR #242626)
Chen Miao via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 1 01:23:56 PST 2026
================
@@ -0,0 +1,22 @@
+// RUN: %clang_cc1 -std=c++98 -fsyntax-only -verify -Wc++11-compat %s
+
+#define ID(x) x
+#define DISCARD(x)
+#define EXPAND_AND_DISCARD(x) DISCARD(x)
+
+#define constexpr const
----------------
ChenMiaoi wrote:
in c++98 constexpr is not keyword?
https://github.com/llvm/llvm-project/pull/242626
More information about the cfe-commits
mailing list