[PATCH] c++: Improve printing of pointers-to-members [PR97406, PR85901]

2020-10-14 Thread Marek Polacek via Gcc-patches
This PR points out that when printing the parameter mapping for a pointer-to-member-function, the output was truncated: [with T = void (X::*] Fixed by printing the abstract declarator for pointers-to-members in cxx_pretty_printer::type_id. So now we print: [with T = void (X::*)()] But when

Re: [PATCH] c++: Improve printing of pointers-to-members [PR97406, PR85901]

2020-10-15 Thread Jason Merrill via Gcc-patches
On 10/14/20 3:52 PM, Marek Polacek wrote: This PR points out that when printing the parameter mapping for a pointer-to-member-function, the output was truncated: [with T = void (X::*] Fixed by printing the abstract declarator for pointers-to-members in cxx_pretty_printer::type_id. So now we