diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-12-06 01:27:24 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-12-06 01:27:24 +0000 |
commit | c275da6a14faea8f3b18516509280af688168390 (patch) | |
tree | d045d76b60f7efe2d62ec40ac02a2986f0d8db89 /clang/test/SemaTemplate/dependent-expr.cpp | |
parent | d5944cd118bff0a2a861fc728ab968e492b0ccf6 (diff) | |
download | bcm5719-llvm-c275da6a14faea8f3b18516509280af688168390.tar.gz bcm5719-llvm-c275da6a14faea8f3b18516509280af688168390.zip |
PR18152: When computing the semantic form for an initializer list, keep track
of whether the initializer list is dependent.
llvm-svn: 196558
Diffstat (limited to 'clang/test/SemaTemplate/dependent-expr.cpp')
-rw-r--r-- | clang/test/SemaTemplate/dependent-expr.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/dependent-expr.cpp b/clang/test/SemaTemplate/dependent-expr.cpp index 2c26ec53a0a..7195c9d48d7 100644 --- a/clang/test/SemaTemplate/dependent-expr.cpp +++ b/clang/test/SemaTemplate/dependent-expr.cpp @@ -93,3 +93,10 @@ namespace PR10837 { } template struct A<int>; } + +namespace PR18152 { + template<int N> struct A { + static const int n = {N}; + }; + template struct A<0>; +} |