================
@@ -210,9 +210,7 @@ A GetA() {
namespace ForwardDeclaredMember {
struct A;
struct A {
- int x = 0;
- // cxx98-warning@-1 {{default member initializer for non-static data
member is a C++11 extension}}
- // cxx98-note@-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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits