------- Comment #4 from gcc at magfr dot user dot lysator dot liu dot se 2010-05-29 08:17 ------- I have run head-first into this problem as well.
I have found that _ZN1tcvT_IiEEv ( t::operator int<int>() ) works but _ZN1tcvKT_IiEEv ( t::operator int const<int>() ) fails so it seems the problem is that the template isn't detected, and looking at the code in libiberty/cp-demangle.c (r159908) we have line 4689 that tries to detect if the cast target is a template type but only handles the case where the type is unadorned by anything and then there is the comment on lines 4696-4699 that explains the problem. -- gcc at magfr dot user dot lysator dot liu dot se changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gcc at magfr dot user dot | |lysator dot liu dot se http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41233