Lines Matching full:parameter
9 template < ; // expected-error {{expected template parameter}} \
10 // expected-error{{expected ',' or '>' in template-parameter-list}} \
12 template <int +> struct x1; // expected-error {{expected ',' or '>' in template-parameter-list}}
15 template <int +, T> struct x2; // expected-error {{expected ',' or '>' in template-parameter-list}} \
17 template<template<int+>> struct x3; // expected-error {{expected ',' or '>' in template-parameter-list}} \
18 expected-error {{template template parameter requires 'class' after the parameter list}}
21 template <template <typename> > struct Err2; // expected-error {{template template parameter requires 'class' after the parameter list}}
22 template <template <typename> Foo> struct Err3; // expected-error {{template template parameter requires 'class' after the parameter list}}
62 // Template parameter shadowing
63 template<typename T, // expected-note{{template parameter is declared here}}
64 typename T> // expected-error{{declaration of 'T' shadows template parameter}}
67 template<typename T> // expected-note{{template parameter is declared here}}
68 void shadow2(int T); // expected-error{{declaration of 'T' shadows template parameter}}
70 template<typename T> // expected-note{{template parameter is declared here}}
71 class T { // expected-error{{declaration of 'T' shadows template parameter}}
74 template<int Size> // expected-note{{template parameter is declared here}}
75 void shadow3(int Size); // expected-error{{declaration of 'Size' shadows template parameter}}