]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/57550 (bogus "error ... is private")
authorJason Merrill <jason@redhat.com>
Tue, 9 Jul 2013 03:19:36 +0000 (23:19 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 9 Jul 2013 03:19:36 +0000 (23:19 -0400)
commit0ef08a81174e8a46e59cc2e1811f03e6754a4eba
tree8cc6cbc0e225a5b396b8f631b998f97ea6b4746a
parenta89b31132d4e18a1563a6fd3b57f1212401d747b
re PR c++/57550 (bogus "error ... is private")

PR c++/57550
* pt.c (fn_type_unification): Only defer during substitution.
(type_unification_real): Defer during defarg substitution,
add checks parm to pass back deferred checks.
(unify, do_auto_deduction): Adjust.
* semantics.c (reopen_deferring_access_checks): New.
* cp-tree.h: Declare it.

From-SVN: r200808
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/g++.dg/template/access27.C [new file with mode: 0644]