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++/48884] decltype's operand doesn't consider friend declaration


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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-24 20:26:51 UTC ---
Author: jason
Date: Tue May 24 20:26:47 2011
New Revision: 174139

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174139
Log:
    PR c++/48884
    * class.c (pushclass): Accept NULL argument.
    (popclass): Deal with popping null class.
    * pt.c (push_access_scope, pop_access_scope): Use them rather than
    push_to_top_level/pop_from_top_level.
    (push_deduction_access_scope, pop_defarg_context): New.
    (fn_type_unification): Use them.
    * name-lookup.c (lookup_name_real_1): Check current_class_type.

Added:
    trunk/gcc/testsuite/g++.dg/template/access21.C
    trunk/gcc/testsuite/g++.dg/template/access22.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/class.c
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


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