On Wed, Oct 13, 2010 at 12:03 PM, Tom Tromey wrote: > The qualified variants are all linked > together and allocated alongside the main_type, so we don't have to > worry about memory leaks or excess type reinstantiation. I'm aware of that. How about this? [testsuite results not in yet] 2010-10-13 Doug Evans PR exp/12117 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify assumptions of when this case happens. Print "". * gdbtypes.c (check_typedef): Clean up function comment. Keep track of instance flags as we strip typedefs and create a new type to preserve them if necessary. testsuite/ * gdb.cp/pr12117.cc: New file. * gdb.cp/pr12117.exp: New file.