You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
397 B
14 lines
397 B
// RUN: %clang_cc1 -fsyntax-only -std=c++14 -verify %s
|
|
|
|
namespace NoCrashOnDelayedAccessCheck {
|
|
class Foo {
|
|
class Private; // expected-note {{declared private here}}
|
|
};
|
|
|
|
struct Bar {};
|
|
|
|
template <typename T>
|
|
Foo::Private Bar::ABC; // expected-error {{no member named 'ABC' in 'NoCrashOnDelayedAccessCheck::Bar'}} \
|
|
expected-error {{'Private' is a private member of}}
|
|
}
|