]> granicus.if.org Git - clang/commit
When transforming a C++ "new" expression's constructor arguments, drop
authorDouglas Gregor <dgregor@apple.com>
Wed, 26 May 2010 07:10:06 +0000 (07:10 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 26 May 2010 07:10:06 +0000 (07:10 +0000)
commitff2e4f44e56aef84fa423af4ca5c1fe56886b4aa
tree7f9b13cef02a6939e20662d209eebf08dfd63a3f
parent7d0918acd134ab93b7d3eb6add93dfde37b1f7b3
When transforming a C++ "new" expression's constructor arguments, drop
any arguments that are default-argument expressions. The can show up
when we have a new expression whose constructor arguments are not
type-dependent and whose allocated type is not dependent and has a
constructor with default arguments. Fixes PR7202.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104690 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/TreeTransform.h
test/SemaTemplate/instantiate-expr-2.cpp