PR14428: When instantiating a 'new' expression, if we had a non-dependent
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 26 Nov 2012 08:32:48 +0000 (08:32 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 26 Nov 2012 08:32:48 +0000 (08:32 +0000)
commitdd2ca571ae371469ffaaa898920572d34c1baa0a
treed8b4b966c604ff99e3c0b096de8e76d15924d592
parentc1cf629e41313a5193e0cccee1c39c7c0e1207f7
PR14428: When instantiating a 'new' expression, if we had a non-dependent
initialization, don't rebuild it. Remove a couple of hacks which were trying to
work around this. Fix the special case for one-argument CXXConstructExprs to
not apply if the one argument is a default argument.

llvm-svn: 168582
clang/lib/Sema/SemaExprCXX.cpp
clang/lib/Sema/TreeTransform.h
clang/test/SemaTemplate/default-expr-arguments.cpp