[GCC-XML] xml_find_template_parm encountered unsupported type field_decl

Leonard Ritter l.ritter at 49games.de
Mon Apr 28 12:14:10 EDT 2008


Brad King wrote:
> Leonard Ritter wrote:
>   
>> Leonard Ritter wrote:
>>     
>>> hi everyone,
>>>
>>> while parsing the headers of a proprietary base library that we use
>>> for game development, gccxml stops with following output:
>>>
>>> Error occured while running GCC-XML: xml_find_template_parm
>>> encountered unsupported type field_decl
>>>       
>> using the option -E i could track down the problem to this line:
>>
>>    sDList<sMemoryHeapFreeNode,&sMemoryHeapFreeNode::Node> FreeList;
>>
>> the compiler simulated is msvc8, most recent cvs build.
>>     
>
> I can reproduce the problem like this:
>
>   template <class T, int T::*> class A {};
>   struct B { int x; };
>   typedef A<B, &B::x> AB;
>
> However, it is just a warning and gccxml still exits with code '0'.  Are
> you using some other front end tool that thinks this is an error?
>   
yes, pygccxml. actually it treats any output of gccxml as an error ;)
> Anyway, I've committed a fix that should avoid the warning.
>   
thanks :)




More information about the gccxml mailing list