We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 453bd04 commit 2323b54Copy full SHA for 2323b54
clang/test/CXX/drs/dr0xx.cpp
@@ -714,6 +714,8 @@ namespace dr51 { // dr51: 2.8
714
}
715
716
namespace dr52 { // dr52: 2.8
717
+ struct A { int n; }; // expected-note {{here}}
718
+ struct B : private A {} b; // expected-note 2{{private}}
719
// FIXME: This first diagnostic is very strangely worded, and seems to be bogus.
720
int k = b.A::n; // expected-error {{'A' is a private member of 'dr52::A'}}
721
// expected-error@-1 {{cannot cast 'struct B' to its private base}}
0 commit comments