Patchwork [/,RFC] PR 50828

login
register
mail settings
Submitter Paolo Carlini
Date Sept. 24, 2012, 3:36 p.m.
Message ID <50607E11.8000002@oracle.com>
Download mbox | patch
Permalink /patch/186469/
State New
Headers show

Comments

Paolo Carlini - Sept. 24, 2012, 3:36 p.m.
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.

////////////////////
Jason Merrill - Sept. 24, 2012, 3:39 p.m.
OK.

Jason

Patch

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);