================
@@ -0,0 +1,42 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+namespace reduced {
+union Union {
+ class A {
+ virtual void foo();
+ };
+ class B : public A {
+ };
+ void B::foo() {} // expected-error {{non-friend class member 'foo' cannot
have a qualified name}}
----------------
akash-manna-sky wrote:
added — `void A::foo() {}` inside `A` now has a case alongside the others.
https://github.com/llvm/llvm-project/pull/217942
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits