* cp-valprint.c (cplus_print_value): Call check_stub_type on

TYPE_BASECLASS (type, i) before we look at its name.
This commit is contained in:
Jim Kingdon
1993-12-27 17:01:03 +00:00
parent 404f69a80b
commit 2d2fc7e464
2 changed files with 7 additions and 1 deletions

View File

@@ -355,7 +355,10 @@ cplus_print_value (type, valaddr, stream, format, recurse, pretty, dont_print)
{
char *baddr;
int err;
char *basename = TYPE_NAME (TYPE_BASECLASS (type, i));
char *basename;
check_stub_type (TYPE_BASECLASS (type, i));
basename = TYPE_NAME (TYPE_BASECLASS (type, i));
if (BASETYPE_VIA_VIRTUAL (type, i))
{