This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48884] decltype's operand doesn't consider friend declaration
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 24 May 2011 20:41:56 +0000
- Subject: [Bug c++/48884] decltype's operand doesn't consider friend declaration
- Auto-submitted: auto-generated
- References: <bug-48884-4@http.gcc.gnu.org/bugzilla/>
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