re PR c++/49663 ([C++0x] ICE in lookup_base)
authorJason Merrill <jason@redhat.com>
Thu, 7 Jul 2011 21:53:58 +0000 (17:53 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 7 Jul 2011 21:53:58 +0000 (17:53 -0400)
commit0771d9d750576cd36a710a1a99cdd4163efa0164
tree225d7cd1863805212f54357b70b2849d0160340a
parentceeb79a48e25f19f6242e1ac281883a07dd1d2f1
re PR c++/49663 ([C++0x] ICE in lookup_base)

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.

From-SVN: r176013
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]