Re: Tracing C++ template instantiations

2011-06-09 Thread Jonathan Wakely
On 9 June 2011 21:06, Jason Merrill wrote: > On 06/09/2011 03:48 PM, Jonathan Wakely wrote: >> >> Someone else asked for this the other day on gcc-help >> (http://gcc.gnu.org/ml/gcc-help/2011-06/msg00193.html) so I thought >> I'd take a look at implementing it. It turns out that or class >> templat

Re: Tracing C++ template instantiations

2011-06-09 Thread Jason Merrill
On 06/09/2011 03:48 PM, Jonathan Wakely wrote: Someone else asked for this the other day on gcc-help (http://gcc.gnu.org/ml/gcc-help/2011-06/msg00193.html) so I thought I'd take a look at implementing it. It turns out that or class templates all that's needed is something like: verbatim ("insta

Tracing C++ template instantiations

2011-06-09 Thread Jonathan Wakely
When I'm working on complicated template code and debugging a mixture of bugs in my templates and ICEs in g++ caused by my buggy templates I sometimes wish I could see a dump of all the templates that the compiler is instantiating, so I can see at which point in a deeply-nested instantiation things