summaryrefslogtreecommitdiff
path: root/test/SemaTemplate/temp_arg_nontype.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-11-04 18:18:19 +0000
committerDouglas Gregor <dgregor@apple.com>2009-11-04 18:18:19 +0000
commit862354188764f4a20be21d103bc2abd074ad048a (patch)
treec918e06296081879d3c692ccbae62025d811043e /test/SemaTemplate/temp_arg_nontype.cpp
parent7799621ad7d16f3c6a1aeda024312d63ecd77777 (diff)
downloadclang-862354188764f4a20be21d103bc2abd074ad048a.tar.gz
clang-862354188764f4a20be21d103bc2abd074ad048a.tar.bz2
clang-862354188764f4a20be21d103bc2abd074ad048a.tar.xz
Properly replace (cxxscope, template-id) annotation tokens with a
single typename annotation token when backtracing. Fixes PR5350. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86034 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/temp_arg_nontype.cpp')
-rw-r--r--test/SemaTemplate/temp_arg_nontype.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/SemaTemplate/temp_arg_nontype.cpp b/test/SemaTemplate/temp_arg_nontype.cpp
index 534030dba0..814801ccff 100644
--- a/test/SemaTemplate/temp_arg_nontype.cpp
+++ b/test/SemaTemplate/temp_arg_nontype.cpp
@@ -122,3 +122,17 @@ extern FuncPtr0<&func0> *fp0;
int func0(int, int);
extern FuncPtr0<&func0> *fp0;
+// PR5350
+namespace ns {
+ template <typename T>
+ struct Foo {
+ static const bool value = true;
+ };
+
+ template <bool b>
+ struct Bar {};
+
+ const bool value = false;
+
+ Bar<bool(ns::Foo<int>::value)> x;
+}