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:
Keith Seitz 2012-08-19 19:37:51 +00:00
parent f8aa133dce
commit e5afdbd7a0
5 changed files with 435 additions and 2 deletions

View file

@ -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;