================
@@ -450,11 +445,15 @@ void A<int>::B::e() { (void)c.private_int; }
 template<class T>
 void A<T>::f() { (void)c.private_int; }
 int A<int>::f() { (void)c.private_int; return 0; }
+// expected-error@-1 {{'private_int' is a private member of 'cwg1862::C'}}
+// expected-note@-30 {{implicitly declared private here}}
----------------
Endilll wrote:

Please do not use relative offsets like this. Put a label (`// #cwg1862-f` or 
something along those lines) where needed, and reference it here.

https://github.com/llvm/llvm-project/pull/191268
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to