[cfe-dev] [patch] Fix access computation of default arguments in template classes

Nico Weber thakis at chromium.org
Sun Nov 28 15:32:41 PST 2010


Hi,

the attached patch fixes http://http://llvm.org/pr8479 "clang
evaluates visibility of default parameters at the call site instead of
at parameter definition site".

The problem was that Sema::BuildCXXDefaultArgExpr didn't update the
current decl context before calling SubstExpr(), so that the default
parameter access was checked with the decl context of the template
instantiation site. Please review.

Nico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-template-friend-default-arg.patch
Type: application/octet-stream
Size: 2325 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101128/40abd60c/attachment.obj>


More information about the cfe-dev mailing list