Lines Matching full:parameter
3 // If a template-parameter of a class template or alias template has a default
4 // template-argument, each subsequent template-parameter shall either have a
5 // default template-argument supplied or be a template parameter pack.
8 template<typename T = int, typename> struct X3t; // expected-error{{template parameter missing a default argument}} expected-note{{previous default template argument defined here}}
9 template<typename T = int, typename> using A3t = int; // expected-error{{template parameter missing a default argument}} expected-note{{previous default template argument defined here}}
10 template<int V = 0, int> struct X3nt; // expected-error{{template parameter missing a default argument}} expected-note{{previous default template argument defined here}}
11 template<int V = 0, int> using A3nt = int; // expected-error{{template parameter missing a default argument}} expected-note{{previous default template argument defined here}}
12 template<template<class> class M = vector, template<class> class> struct X3tt; // expected-error{{template parameter missing a default argument}} expected-note{{previous default template argument defined here}}
13 template<template<class> class M = vector, template<class> class> using A3tt = int; // expected-error{{template parameter missing a default argument}} expected-note{{previous default template argument defined here}}
24 // If a template-parameter of a primary class template or alias template is a
25 // template parameter pack, it shall be the last template-parameter.
26 template<typename ...Types, // expected-error{{template parameter pack must be the last template parameter}}
30 template<typename ...Types, // expected-error{{template parameter pack must be the last template parameter}}
34 template<int ...Values, // expected-error{{template parameter pack must be the last template parameter}}
37 template<int ...Values, // expected-error{{template parameter pack must be the last template parameter}}
41 template<template<typename> class ...Templates, // expected-error{{template parameter pack must be the last template parameter}}
44 template<template<typename> class ...Templates, // expected-error{{template parameter pack must be the last template parameter}}