[GCC-XML]gccxml has problems with valarray?

Maarten mkeijzer at cs.vu.nl
Sun Oct 26 14:02:48 EST 2003


Hi,

I seem to have a problem getting valid xml when I include <valarray> in my
source files. I'm using gccxml 0.4.2, and if I validate the output from the 
following source
file using xmlwf,

===== tst.cpp =====
#include <valarray>
==============

I get

$ xmlwf tst.xml
tst.xml:5722:137: not well-formed (invalid token)

And indeed, looking at line 5722, I see

<Class id="_1859" name="_BinBase1<_Oper,std::valarray<_Tp> >"
context="_2" location="f66:405" members="_4362 _4363 _4365   <Unimplemented
id="_0" tree_code="185" tree_code_name="bound_template_template_parm"
node="0x40d039c0" function="xml_add_type_decl"/>

Note that the bracketed <Unimplemented ... > is *inside* a quoted list of
numbers. As it also uses quotes within its own angle brackets it seems
unparsable. I don't know the first thing about gccxml, but this doesn't look 
right.

I scanned the archives for 'valarray' but didn't find anything. I tried it 
with gcc versions 3.0, 3.2 and 3.3 and got the same results.

In any case, I'm stuck now, can someone suggest a workaround? I'm trying to
pythonize a library using pyste. My library uses valarrays through the
headers, and there is no way to get rid of those.

Thanks,

-Maarten-




More information about the gccxml mailing list