On 09/24/2012 04:53 PM, Jason Merrill wrote:
I think dump_function_decl should strip TFF_TEMPLATE_NAME from flags before passing flags along to other functions, like dump_template_parms does.
I see. The below also works on the "note" and passes the testsuite.

Note: I'm adding to the existing stripping of TFF_UNQUALIFIED_NAME, thus at the beginning of dump_function_decl but after the handling of lambdas.

Thanks,
Paolo.

////////////////////
Index: error.c
===================================================================
--- error.c     (revision 191665)
+++ error.c     (working copy)
@@ -1348,7 +1348,7 @@ dump_function_decl (tree t, int flags)
       return;
     }
 
-  flags &= ~TFF_UNQUALIFIED_NAME;
+  flags &= ~(TFF_UNQUALIFIED_NAME | TFF_TEMPLATE_NAME);
   if (TREE_CODE (t) == TEMPLATE_DECL)
     t = DECL_TEMPLATE_RESULT (t);
 

Reply via email to