PR c++/61806 - missed SFINAE with partial specialization.
authorJason Merrill <jason@redhat.com>
Mon, 4 Jun 2018 15:16:00 +0000 (11:16 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 4 Jun 2018 15:16:00 +0000 (11:16 -0400)
commitae177d3529441c5c834748bc890cf6823960b008
tree8c2bcb9e7a4d2d05d42477516dee59e8ca226f01
parent8566678b9da3db996f7566ecb691be07ff376c8f
PR c++/61806 - missed SFINAE with partial specialization.

* cp-tree.h (deferring_access_check_sentinel): Add deferring_kind
parameter to constructor.
* pt.c (instantiate_class_template_1): Enable access checking
before call to most_specialized_partial_spec.

From-SVN: r261151
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/sfinae63.C [new file with mode: 0644]