diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-08-26 20:28:17 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-08-26 20:28:17 +0000 |
commit | 7b2f51c758a14205f4c4215d7dc04a4cf3947b8a (patch) | |
tree | 13808899502f6324d90ecaed29d4e540ee7e7934 /test/SemaTemplate/temp_arg_nontype.cpp | |
parent | 1795d371c3ef79c3a2316677ea2014b2952915ac (diff) | |
download | clang-7b2f51c758a14205f4c4215d7dc04a4cf3947b8a.tar.gz clang-7b2f51c758a14205f4c4215d7dc04a4cf3947b8a.tar.bz2 clang-7b2f51c758a14205f4c4215d7dc04a4cf3947b8a.tar.xz |
Don't assert on taking the address of a non-type template parameter. Fixes PR10766.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138648 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/temp_arg_nontype.cpp')
-rw-r--r-- | test/SemaTemplate/temp_arg_nontype.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/SemaTemplate/temp_arg_nontype.cpp b/test/SemaTemplate/temp_arg_nontype.cpp index f90bb11f71..e93cfa3ebd 100644 --- a/test/SemaTemplate/temp_arg_nontype.cpp +++ b/test/SemaTemplate/temp_arg_nontype.cpp @@ -320,3 +320,6 @@ namespace PR10579 { } } + +template <int& I> struct PR10766 { static int *ip; }; +template <int& I> int* PR10766<I>::ip = &I; |