diff options
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/decl.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 94658ac..970f787 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,10 @@ 2001-06-05 Nathan Sidwell <nathan@codesourcery.com> + * decl.c (xref_tag): Remove extraneous %s on dependent name + lookup warning. + +2001-06-05 Nathan Sidwell <nathan@codesourcery.com> + * class.c (layout_vtable_decl): Fix off by one error on build_index_type. (build_vtt): Likewise. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 06f19cd..8bb6c7a 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -12557,7 +12557,7 @@ xref_tag (code_type_node, name, globalize) 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", + 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)); |