http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53822

--- Comment #6 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Manuel López-Ibáñez from comment #5)
> (In reply to Marc Glisse from comment #4)
> There is code in error.c:type_to_string to print "{aka ". It does some
> tricks to avoid printing aka when there are no typedefs. Perhaps
> args_to_string() should call type_to_string() instead of calling dump_type
> directly. With that, it prints:
> 
> test.cc:6:6: error: call of overloaded ‘f(NT& {aka unsigned int&})’ is
> ambiguous

Nice!

> I am not sure if that is clearer or not.

Probably depends on cases. Sometimes it is good to have the explanation right
next to the type, other times it takes up all the space and you can't even find
the commas separating the arguments anymore (maybe if the whole {aka ...} block
was a different color?).

Reply via email to