[Bug c++/40793] "Error: no matching function for call to XYZ" doesn't display function-template-arguments

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Sep 29 12:17:00 GMT 2011


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

--- Comment #15 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2011-09-29 12:13:17 UTC ---
(In reply to comment #14)
> Never mind, I don't think it's the same, but 39813 is also pretty weird, why
> error.c sees the member template as a friend it's a mystery to me...

Paolo, feel free to take the patch in comment #7 and updated as needed.
However, I am not very happy with it because it uses %E and that means we
reconstruct an expression, which sometimes leads to something that does not
resemble the original source code at all. It would be neat to have a way to
print the template arguments without using %E.

Also, I am not sure what is the current output after Nathan improved the
candidate diagnostics.



More information about the Gcc-bugs mailing list