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.