PR c++/14365
* c-typeprint.c (c_type_print_varspec_prefix): Pass -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR. * gdb.dwarf2/dw2-anon-mptr.exp: New file. * gdb.dwarf2/dw2-anon-mptr.S: New file.
This commit is contained in:
parent
f8aa133dce
commit
e5afdbd7a0
5 changed files with 435 additions and 2 deletions
|
@ -265,7 +265,7 @@ c_type_print_varspec_prefix (struct type *type,
|
|||
fputs_filtered (name, stream);
|
||||
else
|
||||
c_type_print_base (TYPE_DOMAIN_TYPE (type),
|
||||
stream, 0, passed_a_ptr);
|
||||
stream, -1, passed_a_ptr);
|
||||
fprintf_filtered (stream, "::*");
|
||||
break;
|
||||
|
||||
|
@ -278,7 +278,7 @@ c_type_print_varspec_prefix (struct type *type,
|
|||
fputs_filtered (name, stream);
|
||||
else
|
||||
c_type_print_base (TYPE_DOMAIN_TYPE (type),
|
||||
stream, 0, passed_a_ptr);
|
||||
stream, -1, passed_a_ptr);
|
||||
fprintf_filtered (stream, "::*");
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue