[clang] [Clang] Make most C++98 extension warnings pedantic (PR #246759)
Shengxin Pei via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 28 15:58:29 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:
I’m not entirely sure, but it looks a bit odd for this note to be left standing on its own. If the warning is disabled, shouldn’t this note also be disabled?
https://github.com/llvm/llvm-project/pull/246759
More information about the cfe-commits
mailing list