Always use a function's decl context when building default arguments. Fixes http...
authorNico Weber <nicolasweber@gmx.de>
Mon, 29 Nov 2010 18:19:25 +0000 (18:19 +0000)
committerNico Weber <nicolasweber@gmx.de>
Mon, 29 Nov 2010 18:19:25 +0000 (18:19 +0000)
commit08e41a656575ee63f8eefc7805493055c645fa85
treeeca134f3892a751c34e0cd1815ba3328fcdc23b9
parent03013fa9a0bf1ef4b907f5fec006c8f4000fdd21
Always use a function's decl context when building default arguments. Fixes http://http://llvm.org/pr8479.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120299 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/SemaCXX/friend.cpp