]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/51213 (again)
authorJason Merrill <jason@redhat.com>
Thu, 2 Aug 2012 18:44:58 +0000 (14:44 -0400)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 2 Aug 2012 18:44:58 +0000 (18:44 +0000)
commit742b0bcd66e1d8d40b19e33bf86764bbd3aa1744
tree8dcb8f70665b36034a058e9049699008a55f672e
parent328ece7de3d6903fd6e2c909e1efe1eea59fc8ec
PR c++/51213 (again)

/cp
2012-08-02  Jason Merrill  <jason@redhat.com>
    Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51213 (again)
* pt.c (type_unification_real): Call push_deferring_access_checks /
pop_deferring_access_checks around the substitution of default
template args.
(instantiate_template_1): When the specialization returned by
retrieve_specialization has FNDECL_HAS_ACCESS_ERRORS set and we
are in a SFINAE context, simply return error_mark_node.
* cp-tree.h (FNDECL_RECHECK_ACCESS_P): Rename FNDECL_HAS_ACCESS_ERRORS.

/testsuite
2012-08-02  Jason Merrill  <jason@redhat.com>
    Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51213 (again)
* g++.dg/cpp0x/sfinae37.C: Extend.

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>
From-SVN: r190093
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/sfinae37.C