PR c++/37971
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Dec 2008 01:23:28 +0000 (01:23 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Dec 2008 01:23:28 +0000 (01:23 +0000)
commit4fdb071c8468b64d2b84f2c1b1e76c506efa9f22
tree97ac3a7e5ee833b3c762010f7695178c02fc047a
parentef7dd22672a2ce9fd5b0cc7d43395b45fae52f05
PR c++/37971
* class.c (resolve_address_of_overloaded_function): Check
accessibility of member functions unless FLAGS indicates
otherwise.
* call.c (standard_conversion): Adjust flags passed to
instantiate_type.
(convert_default_arg): Do not perform access checks.
* cp-tree.h (tsubst_flags_t): Add tf_no_access_control.

PR c++/37971
* g++.dg/overload/defarg2.C: New test.
* g++.dg/overload/defarg3.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142628 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/overload/defarg2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/overload/defarg3.C [new file with mode: 0644]