]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/class.c
re PR c++/25836 (G++ does not allow a conversion of templated types)
authorMark Mitchell <mark@codesourcery.com>
Thu, 19 Jan 2006 06:55:53 +0000 (06:55 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 19 Jan 2006 06:55:53 +0000 (06:55 +0000)
commitc888c93b290aeb3f7eb556bd5b7ed4f7564c822a
tree7783dc30a654ed3f4012aa97244eb51ffd2fa604
parente79b9d54a17db3d8676ae30c1f04e90e90691cec
re PR c++/25836 (G++ does not allow a conversion of templated types)

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.

From-SVN: r109945
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/init6.C [new file with mode: 0644]