1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 // There should be no extra errors about missing 'template' keywords.
7 } builder
; // expected-note 2{{'builder' declared here}}
9 auto a
= bilder
.f
<int>(); // expected-error{{undeclared identifier 'bilder'; did you mean}}
10 auto b
= (*(&bilder
+0)).f
<int>(); // expected-error{{undeclared identifier 'bilder'; did you mean}}
18 template <typename T
> static void g(typename
T::type
) {} // expected-note {{couldn't infer template argument 'T'}}
19 template <typename T
> void f() { g(typename
T::type
{}); } // expected-error {{no matching function for call to 'g'}}
22 void f() { S
{}.f
<X
>(); } // expected-note {{in instantiation of}}