[GCC-XML]Wrong output in version 0.4.1?

Nicodemus nicodemus at globalite.com.br
Thu Mar 6 09:52:19 EST 2003


Brad King wrote:

>>To solve the problem, you could replace the xml_print_context_attribute
>>function by :
>>
>>/* Print the XML attribute context="..." for the given node.  */
>>static void
>>xml_print_context_attribute (xml_dump_info_p xdi, tree n)
>>{
>>  if(n != global_namespace)
>>    {
>>    int id = xml_add_node (xdi, CP_DECL_CONTEXT (n), 0);
>>    if (id == 0)
>>      return;
>>    fprintf (xdi->file, " context=\"_%d\"",id);
>>    }
>>}
>>    
>>
>
>True, but that just fixes the symptom.  Those nodes shouldn't be dumped at
>all.  They do not correspond to any real code, only to uninstantiated code
>templates.
>
>-Brad
>

Ok then. Thanks for the responses Brad and Richard. I will change my 
code to ignore these nodes.

Thanks again,
Nicodemus.





More information about the gccxml mailing list