1 // RUN: %clang_cc1 -fms-compatibility -fsyntax-only -verify %s
15 D::foo2(); // expected-warning {{use of undeclared identifier 'D'; unqualified lookup into dependent bases of class template 'B' is a Microsoft extension}}
19 template struct B
<int>; // Instantiation has no warnings.
22 namespace nested_nodep_base
{
23 // There are limits to our hacks, MSVC accepts this, but we don't.
25 struct D
{ static void foo2(); };
31 D::foo2(); // expected-error {{use of undeclared identifier 'D'}}
36 template struct B
<A
>; // Instantiation has no warnings.
39 namespace nested_dep_base
{
40 // We actually accept this because the inner class has a dependent base even
41 // though it isn't a template.
43 struct D
{ static void foo2(); };
49 D::foo2(); // expected-warning {{use of undeclared identifier 'D'; unqualified lookup into dependent bases of class template 'C' is a Microsoft extension}}
54 template struct B
<A
>; // Instantiation has no warnings.