[PATCH] PR debug/49348 (DW_TAG_template_* missing from template specializations)

Jason Merrill jason@redhat.com
Fri Jun 10 19:15:00 GMT 2011

Hmm, I'm not sure about this; it seems to me that we want to know about 
the actual parameters that a particular specialization has, which in the 
case of an explicit specialization is none.  Or for a partial 

template <class T> struct A;
template <class T> struct A<T*> { }
A<int*> a;

here A<int*> has a type parameter named T, with the value 'int'.  It 
would be very surprising for T to resolve to int* in the debugger when 
it resolves to int in the body of A<T*>.

Which suggests that perhaps we want to leave the template arguments in 
the name after all.


More information about the Gcc-patches mailing list