]> granicus.if.org Git - clang/commit
When inheriting a default argument expression, inherit the full expression,
authorJohn McCall <rjmccall@apple.com>
Tue, 4 May 2010 01:53:42 +0000 (01:53 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 4 May 2010 01:53:42 +0000 (01:53 +0000)
commit3d6c1782c4fc2ed3e6a924c15042edb1f56fee36
treea23f0aaeab8e076c826212bd0057c85ce432d12c
parent3c347f25b507740c3e41de70819f8fbbee4cde89
When inheriting a default argument expression, inherit the full expression,
not just the inner expression.  This is important if the expression has any
temporaries.  Fixes PR 7028.

Basically a symptom of really tragic method names.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102998 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGClass.cpp
lib/Sema/SemaDeclCXX.cpp
test/CodeGenCXX/default-arg-temps.cpp