C++ PATCH to setup_class_bindings for c++/5658

Jason Merrill jason@redhat.com
Thu Apr 18 06:55:00 GMT 2002


My patch of 2001-11-15 broke a testcase with a nested class template; we
will now return a class TEMPLATE_DECL from a type-specific lookup, but
setup_class_bindings was confused by getting something other than a
TYPE_DECL.  This patch enlightens it.

Tested i686-pc-linux-gnu, applied trunk and 3.1.  Test in
g++.dg/template/inherit2.C.

2002-04-18  Jason Merrill  <jason@redhat.com>

	PR c++/5658
	* search.c (setup_class_bindings): A class template qualifies as a
	type binding.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 1277 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20020418/4891db70/attachment.bin>


More information about the Gcc-patches mailing list