re PR c++/48884 (decltype's operand doesn't consider friend declaration)
authorJason Merrill <jason@redhat.com>
Tue, 24 May 2011 20:26:47 +0000 (16:26 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 24 May 2011 20:26:47 +0000 (16:26 -0400)
commit235fe6b4497f0d110914461420ab3c91240988d8
tree9f67e894c2b9a4561659d96cfd45d31db665c22f
parent78be79d534fbcf2799c2c4e0b2c768134c9990d4
re PR c++/48884 (decltype's operand doesn't consider friend declaration)

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.

From-SVN: r174139
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/name-lookup.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/access21.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/access22.C [new file with mode: 0644]