diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:02:28 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:02:28 +0000 |
commit | 7442d6faa2719e4e7d33a7021c406c5a4facd74d (patch) | |
tree | c72b9241553fc9966179aba84f90f17bfa9235c3 /test/SemaTemplate/alias-templates.cpp | |
parent | b52119637f743680a99710ce5fdb6646da2772af (diff) |
Diffstat (limited to 'test/SemaTemplate/alias-templates.cpp')
-rw-r--r-- | test/SemaTemplate/alias-templates.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/SemaTemplate/alias-templates.cpp b/test/SemaTemplate/alias-templates.cpp index d70e86817849f..3b7548d169b0d 100644 --- a/test/SemaTemplate/alias-templates.cpp +++ b/test/SemaTemplate/alias-templates.cpp @@ -254,3 +254,14 @@ namespace PR31514 { tuple_size<const int> t; } + +namespace an_alias_template_is_not_a_class_template { + template<typename T> using Foo = int; // expected-note 2{{here}} + Foo x; // expected-error {{use of alias template 'Foo' requires template arguments}} + Foo<> y; // expected-error {{too few template arguments for alias template 'Foo'}} + + template<template<typename> class Bar> void f() { // expected-note 2{{here}} + Bar x; // expected-error {{use of template template parameter 'Bar' requires template arguments}} + Bar<> y; // expected-error {{too few template arguments for template template parameter 'Bar'}} + } +} |