diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-05-20 21:51:01 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-05-20 21:51:01 +0000 |
commit | 06555f134a7471c93124c71c8f2cf0892cc942cf (patch) | |
tree | 2dab64cabaf2677b01b8b15a373257b4413e028a /clang/test/SemaTemplate/instantiate-function-1.cpp | |
parent | 9a3964a663695e9008b38f3a4fed25f21546c15e (diff) | |
download | bcm5719-llvm-06555f134a7471c93124c71c8f2cf0892cc942cf.tar.gz bcm5719-llvm-06555f134a7471c93124c71c8f2cf0892cc942cf.zip |
Template instantiation for CXXExprWithTemporaries, which occurs when
temporaries are generated for some object-constructing expressions in
templates that are not type-dependent.
Also, be sure to introduce the variable from a CXXConditionDeclExpr
into the set of instantiated local variables.
llvm-svn: 72185
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-function-1.cpp')
-rw-r--r-- | clang/test/SemaTemplate/instantiate-function-1.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/instantiate-function-1.cpp b/clang/test/SemaTemplate/instantiate-function-1.cpp index caae97e60bb..6182e1fe888 100644 --- a/clang/test/SemaTemplate/instantiate-function-1.cpp +++ b/clang/test/SemaTemplate/instantiate-function-1.cpp @@ -69,6 +69,9 @@ template<typename T, typename U, typename V> struct X6 { return v; // expected-error{{incompatible type}} } + if (T x = t) { + t = x; + } return v; } }; |