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++/39987] [4.3/4.4/4.5 Regression] Rejects default argument that is a template via access failure



------- Comment #2 from dodji at gcc dot gnu dot org  2009-08-04 19:50 -------
Subject: Bug 39987

Author: dodji
Date: Tue Aug  4 19:49:48 2009
New Revision: 150467

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150467
Log:
2009-08-04  Dodji Seketeli  <dodji@redhat.com>

gcc/cp/ChangeLog:
        PR c++/39987
        * pt.c (tsubst_default_argument): Let access checks of the
        default argument happen in the context of the current function.

gcc/testsuite/ChangeLog:
        PR c++/39987
        * g++.dg/overload/defarg4.C: New test.


Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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