[GCC-XML] Incomplete instantiated template class in xml

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Sep 4 19:42:34 EDT 2012

On 9/5/12, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
> Why are template instances exported in xml as incomplete types?

Ah, interesting. The full type is exported if there's a value type
that's instantiated:

static ClassList classListVar;  // as opposed to a pointer

<Class id="_84" name="List<Class*>" context="_1"
mangled="4ListIP5ClassE" demangled="List<Class*>"
location="f1:10" file="f1" line="10" artificial="1" size="8" align="8"
members="_164 _165 _166 _167 _168 " bases=""/>

I guess when the pointer was used the compiler figured it never had a
need to look up the full type info.

More information about the gccxml mailing list