[clang] [Clang] Make most C++98 extension warnings pedantic (PR #246759)
Nikolas Klauser via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 29 07:47:35 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}}
};
----------------
philnik777 wrote:
Ah. The note is related to the error about anonymous structs below, not the warning.
https://github.com/llvm/llvm-project/pull/246759
More information about the cfe-commits
mailing list