OSDN Git Service

2009-08-04 Dodji Seketeli <dodji@redhat.com>
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Aug 2009 19:49:48 +0000 (19:49 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Aug 2009 19:49:48 +0000 (19:49 +0000)
commit3a84f10bfd4eda5d05037d8975c38455ca980fc3
tree879ae601983a0828fc4d30c7298b9889352b4166
parent9dab78b8626157fec12a16727e729bd61a6969ef
2009-08-04  Dodji Seketeli  <dodji@redhat.com>

gcc/cp/ChangeLog:
PR c++/39987
* pt.c (tsubst_default_argument): Let access checks of the
default argument happen in the context of the current function.

gcc/testsuite/ChangeLog:
PR c++/39987
* g++.dg/overload/defarg4.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150467 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog