================
@@ -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}}
   };
----------------
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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to