[GCC-XML] GCC-XML 0.9 - another difference

Roman Yakovenko roman.yakovenko at gmail.com
Sun Nov 11 13:29:56 EST 2007


Hi Brad. I found some strange behavior of new GCC-XML.  The type of a
function argument is reported incorrectly.
The full source code for example you can find here:
http://pygccxml.svn.sourceforge.net/viewvc/pygccxml/pygccxml_dev/gccxml-0.9-upgrade/

The short version is:

#include <string>

struct mem_var_str_t{
    static std::string class_name;
    std::string identity(std::string x){ return x; }
};


Gccxml 0.7 reports correctly type of "x", while gccxml 0.9 reports it as:
"restrict & string".

It does this for std and user defined classes passed by value.

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20071111/559057a6/attachment-0001.html>


More information about the gccxml mailing list