aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/dependent-base-classes.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-01-12 17:52:59 +0000
committerDouglas Gregor <dgregor@apple.com>2010-01-12 17:52:59 +0000
commitd9b600c1a589200be905c53e2e10fceb57efa18d (patch)
tree61917a5f8f706cd00c82cb704055d2c9dfe9a045 /test/SemaTemplate/dependent-base-classes.cpp
parent26337b2f6d4b8dc7458a6e24dca05cb021a21861 (diff)
Parse dependent template-ids in base clauses and member
initializers. This isn't actually in the C++ grammar (in any version), but that's clearly an oversight: both GCC and EDG support this syntax, and it's used within Boost code. I'll file a core issue proposing precisely the change made here. Fixes PR6008. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93243 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/dependent-base-classes.cpp')
-rw-r--r--test/SemaTemplate/dependent-base-classes.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaTemplate/dependent-base-classes.cpp b/test/SemaTemplate/dependent-base-classes.cpp
new file mode 100644
index 0000000000..56979209ea
--- /dev/null
+++ b/test/SemaTemplate/dependent-base-classes.cpp
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+template<typename T, typename U>
+struct X0 : T::template apply<U> {
+ X0(U u) : T::template apply<U>(u) { }
+};