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 | 755c0c996a86abb88cf7ecee697a58fa2f200d7b (patch) | |
| tree | 5f1f7139fab0c979f20248e68a1759822e29a49d /clang/test/SemaTemplate | |
| parent | 07aeb629ecc2e6d736660c0f5e0bc273ef267215 (diff) | |
| download | bcm5719-llvm-755c0c996a86abb88cf7ecee697a58fa2f200d7b.tar.gz bcm5719-llvm-755c0c996a86abb88cf7ecee697a58fa2f200d7b.zip | |
Don't assert on taking the address of a non-type template parameter. Fixes PR10766.
llvm-svn: 138648
Diffstat (limited to 'clang/test/SemaTemplate')
| -rw-r--r-- | clang/test/SemaTemplate/temp_arg_nontype.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/temp_arg_nontype.cpp b/clang/test/SemaTemplate/temp_arg_nontype.cpp index f90bb11f716..e93cfa3ebd5 100644 --- a/clang/test/SemaTemplate/temp_arg_nontype.cpp +++ b/clang/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; |

