This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH to improve pretty-printing of function calls
- From: Gabriel Dos Reis <gdr at cs dot tamu dot edu>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 04 Jul 2011 16:41:15 -0500
- Subject: Re: C++ PATCH to improve pretty-printing of function calls
- References: <4E123210.8090807@redhat.com>
Jason Merrill <jason@redhat.com> writes:
| Before this patch, GCC described the candidate as
|
| template<int N> decltype (((TypeC*)this)->TypeC::b.template<int U>
| typename TypeA<U>::type TypeB::fn [with int U = U, int N = 10,
| typename TypeA<U>::type = TypeA<U>::type]()) TypeC::fn()
ouch!
| after the patch, it's
|
| template<int N> decltype (((TypeC*)this)->TypeC::b.fn<N>()) TypeC::fn()
|
| it doesn't make any sense to have the template header or return type
| in the middle of an expression, nor to have the [with ...] template
| bindings.
agreed. Thanks!
-- Gaby