On 9/5/12, Andrej Mitrovic <[email protected]> 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&lt;Class*&gt;" context="_1"
mangled="4ListIP5ClassE" demangled="List&lt;Class*&gt;"
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.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.gccxml.org/mailman/listinfo/gccxml

Reply via email to