PR c++/49663
commit221024763ee5ab708e44a54e3514cd209ce5b686
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Jul 2011 21:53:58 +0000 (7 21:53 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Jul 2011 21:53:58 +0000 (7 21:53 +0000)
tree225d7cd1863805212f54357b70b2849d0160340a
parent38eac3649b4bfb11617190ac1f44b0ea73bfbdc6
PR c++/49663
* pt.c (push_deduction_access_scope): Preserve
processing_template_decl across push_to_top_level.
And revert:
* 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.
* name-lookup.c (lookup_name_real_1): Check current_class_type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176013 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/name-lookup.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/regress/regress4.C [new file with mode: 0644]