diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-10-17 21:40:42 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-10-17 21:40:42 +0000 |
commit | 089407be3fb616fb1246f2aee29b8a9c58ec7807 (patch) | |
tree | eefbf6893de67bec32aeb1304f23ae9902cfa896 /test/SemaTemplate/fun-template-def.cpp | |
parent | 07ab20203fb4254f6152c9a7176732fe199adccd (diff) | |
download | clang-089407be3fb616fb1246f2aee29b8a9c58ec7807.tar.gz |
When type-checking a C++ "new" expression, don't type-check the actual
initialization if any of the constructor/initialization arguments are
type-dependent. Fixes PR5224.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84365 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/fun-template-def.cpp')
-rw-r--r-- | test/SemaTemplate/fun-template-def.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaTemplate/fun-template-def.cpp b/test/SemaTemplate/fun-template-def.cpp index dee4250078..4d8aaa8d16 100644 --- a/test/SemaTemplate/fun-template-def.cpp +++ b/test/SemaTemplate/fun-template-def.cpp @@ -35,7 +35,7 @@ T f1(T t1, U u1, int i1) dynamic_cast<U>(const_cast<T>(i1))))); new U(i1, t1); - new int(t1, u1); // expected-error {{initializer of a builtin type can only take one argument}} + new int(t1, u1); new (t1, u1) int; delete t1; |