diff mbox

[/,RFC] PR 50828

Message ID 50607E11.8000002@oracle.com
State New
Headers show

Commit Message

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

////////////////////

Comments

Jason Merrill Sept. 24, 2012, 3:39 p.m. UTC | #1
OK.

Jason
diff mbox

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