http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50828
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-22 21:39:49 UTC --- Seems due to the below, ie, no decoration for a primary. Remains to be seen if in other contexts (in this case the call chain is dump_template_decl -> dump_function_decl -> dump_type -> dump_aggr_type -> dump_template_parms) we actually do *not* want decorations, otherwise seems easy to change. ///////////////// /* Dump the template parameters from the template info INFO under control of FLAGS. PRIMARY indicates whether this is a primary template decl, or specialization (partial or complete). For partial specializations we show the specialized parameter values. For a primary template we show no decoration. */ static void dump_template_parms (tree info, int primary, int flags) { tree args = info ? TI_ARGS (info) : NULL_TREE; if (primary && flags & TFF_TEMPLATE_NAME) return;