summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/alias-nested-nontag.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaTemplate/alias-nested-nontag.cpp')
-rw-r--r--test/SemaTemplate/alias-nested-nontag.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaTemplate/alias-nested-nontag.cpp b/test/SemaTemplate/alias-nested-nontag.cpp
new file mode 100644
index 0000000..1bb5ce3
--- /dev/null
+++ b/test/SemaTemplate/alias-nested-nontag.cpp
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s
+
+template<typename T> using Id = T; // expected-note {{type alias template 'Id' declared here}}
+struct U { static Id<int> V; };
+Id<int> ::U::V; // expected-error {{type 'Id<int>' (aka 'int') cannot be used prior to '::' because it has no members}} \
+ expected-error {{C++ requires a type specifier}}
OpenPOWER on IntegriCloud