This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/37971] [4.2/4.3/4.4 Regression] Rejects default argument that is a template via access failure



------- Comment #6 from mmitchel at gcc dot gnu dot org  2008-12-10 01:24 -------
Subject: Bug 37971

Author: mmitchel
Date: Wed Dec 10 01:23:28 2008
New Revision: 142628

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142628
Log:
        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.

Added:
    trunk/gcc/testsuite/g++.dg/overload/defarg2.C
    trunk/gcc/testsuite/g++.dg/overload/defarg3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/class.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37971


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]