1 // RUN: %clang_cc1 %s -verify
4 template <typename
... Ts
>
8 static constexpr bool is_present
= false;
12 template <typename T
, typename
... Ts
>
13 struct Foo
<T
, Ts
...> : public Foo
<Ts
...> {
14 using template Foo
<Ts
...>::Bar
;
15 // expected-error@-1 {{'template' keyword not permitted after 'using' keyword}}
23 using template namespace foo
;
24 // expected-error@-1 {{'template' keyword not permitted after 'using' keyword}}
25 using template template namespace foo
;
26 // expected-error@-1 2{{'template' keyword not permitted after 'using' keyword}}
34 using template foo::I
;
35 // expected-error@-1 {{'template' keyword not permitted after 'using' keyword}}
47 using template <typename T
> C
= A
<T
>;
48 // expected-error@-1 {{'template' keyword not permitted after 'using' keyword}}
49 // expected-error@-2 {{expected unqualified-id}}
51 // expected-error@-1 {{no template named 'C'}}