File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -54,14 +54,19 @@ namespace LookupFilter {
5454 template <typename U> using S = S<U>*; // ok
5555}
5656
57- namespace InFunctions {
57+ namespace UnexpectedPack {
5858 template <typename ...T> struct S0 {
5959 template <typename Z> using U = T*; // expected-error {{declaration type contains unexpanded parameter pack 'T'}}
6060 U<char > u;
6161 };
62+ }
6263
64+ namespace InvalidType {
6365 template <typename Z> using T1 = int ;
6466 template <typename Z> using T2 = int [-1 ]; // expected-error {{array size is negative}}
67+ }
68+
69+ namespace ShadowTemplateParam {
6570 template <typename ...T> struct S3 { // expected-note {{template parameter is declared here}}
6671 template <typename Z> using T = int ; // expected-error {{declaration of 'T' shadows template parameter}}
6772 };
You can’t perform that action at this time.
0 commit comments