[GCC-XML]Producing "_0" ids when parsing <string>

Pere Mato Vila Pere.Mato at cern.ch
Tue Jun 17 12:46:20 EDT 2003


>
> GCC-XML does not dump uninstantiated templates (currently).  
>

  In fact I realize now that the problem I have is that GCC-XML dumps
uninstantiated templates in addition to the instantiated ones. And the
information for the uninstantiated one is "incomplete" in the sense that
contains invalid references. On the output file generated from <string>
I can see:
  
  <Class id="_1134"
name="basic_string<wchar_t,std::char_traits<wchar_t>,std::alloc
ator<wchar_t> >" context="_2" location="f49:61" members="..."
bases=""/>
  <Class id="_1136"
name="basic_string<char,std::char_traits<char>,std::allocator&l
t;char> >" context="_2" location="f49:61" members="..." bases=""/>
  <Class id="_1138" name="basic_string<_CharT,_Traits,_Alloc>"
context="_2" location="f32:90" members="..." bases=""/>

  I don't see an easy way to distinguish between the instantiated ones
from the uninstantiated one. The only way is by inspecting all members
and look for references to id's "_0". I have noticed in some cases the
attribute "incomplete" was set but not in this one. Any suggestion?
 

                 Pere Mato



More information about the gccxml mailing list