re PR c++/49042 ([C++0x] wrong "protected" when using template and decltype)
authorJason Merrill <jason@redhat.com>
Tue, 24 May 2011 23:44:59 +0000 (19:44 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 24 May 2011 23:44:59 +0000 (19:44 -0400)
commitf52f3c6dab8faaba5db2b7c1fb558134210d8b93
tree4216f7f45aa36e01e847d24d3ffa5d1ce9dda49d
parentb850be9d50210da752443e730723285bbd1b7c96
re PR c++/49042 ([C++0x] wrong "protected" when using template and decltype)

PR c++/49042
* pt.c (get_mostly_instantiated_function_type): Use
push_deferring_access_checks rather than set flag_access_control.

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