------- Comment #5 from mmitchel at gcc dot gnu dot org 2006-01-19 06:53 ------- Subject: Bug 25836
Author: mmitchel Date: Thu Jan 19 06:52:56 2006 New Revision: 109943 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109943 Log: PR c++/25836 * cp-tree.h (push_class_stack): New function. (pop_class_stack): Likewise. * class.c (class_stack_node): Add hidden field. (pushclass): Clear it. (push_class_stack): New function. (pop_class_stack): Likewise. (currently_open_class): Ignore hidden classes. (currently_open_derived_class): Likewise. * name-lookup.c (push_to_top_level): Call push_class_stack. (pop_from_top_level): Call pop_class_stack. PR c++/25836 * g++.dg/template/init6.C: New test. Added: branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/init6.C Modified: branches/gcc-4_1-branch/gcc/cp/ChangeLog branches/gcc-4_1-branch/gcc/cp/class.c branches/gcc-4_1-branch/gcc/cp/cp-tree.h branches/gcc-4_1-branch/gcc/cp/name-lookup.c branches/gcc-4_1-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25836