[clang] [Clang] Make most C++98 extension warnings pedantic (PR #246759)

Shengxin Pei via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 29 08:26:38 PST 2026


================
@@ -210,9 +210,7 @@ A GetA() {
 namespace ForwardDeclaredMember {
   struct A;
   struct A {
-    int x = 0;
-    // cxx98-warning at -1 {{default member initializer for non-static data member is a C++11 extension}}
-    // cxx98-note at -2 {{because field 'x' has an initializer}}
+    int x = 0; // cxx98-note {{because field 'x' has an initializer}}
   };
----------------
TPPPP72 wrote:

Oh, I see. Thanks!

https://github.com/llvm/llvm-project/pull/246759


More information about the cfe-commits mailing list