[C++ PATCH]: Fix g++.pt/crash67.C

Nathan Sidwell nathan@codesourcery.com
Tue Jun 5 04:59:00 GMT 2001


Hi,
I've installed this patch which fixes a mainline failure of
g++.pt/crash67.C.

It appears that when I fixed bug 2526 I left that there, and it
just happened to be ok.

built & tested on i686-pc-linux-gnu.

nathan
-- 
Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
2001-06-05  Nathan Sidwell  <nathan@codesourcery.com>

	* decl.c (xref_tag): Remove extraneous %s on dependent name
	lookup warning.

Index: cp/decl.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/decl.c,v
retrieving revision 1.788
diff -c -3 -p -r1.788 decl.c
*** decl.c	2001/05/25 20:00:59	1.788
--- decl.c	2001/06/05 11:54:37
*************** xref_tag (code_type_node, name, globaliz
*** 12557,12563 ****
        cp_warning ("`%s %T' declares a new type at namespace scope",
  		  tag_name (tag_code), name);
        if (!explained++)
! 	cp_warning ("  names from dependent base classes are not visible to unqualified name lookup - to refer to the inherited type, say `%s %T::%T'%s",
  		    tag_name (tag_code),
  		    constructor_name (current_class_type),
  		    TYPE_IDENTIFIER (t));
--- 12557,12563 ----
        cp_warning ("`%s %T' declares a new type at namespace scope",
  		  tag_name (tag_code), name);
        if (!explained++)
! 	cp_warning ("  names from dependent base classes are not visible to unqualified name lookup - to refer to the inherited type, say `%s %T::%T'",
  		    tag_name (tag_code),
  		    constructor_name (current_class_type),
  		    TYPE_IDENTIFIER (t));


More information about the Gcc-patches mailing list