On 10/04/2017 04:13 AM, Jakub Jelinek wrote:
Hi!
If a function has auto return value that is deducted to return function
pointer (or pointer array?), we pretty print it as e.g.
auto N::foo)(int)
The problem is that if show_return we use fndecl_declared_return_type (t)
for the type prefix, but TREE_TYPE (fntype) for the type suffix,
and if those types aren't the same, we can emit something that syntactically
makes no sense.
Fixed by making sure that type suffix is called on whatever we called type
prefix on.
ok thanks
nathan
--
Nathan Sidwell