[GCC-XML] bug report
Brad King
brad.king at kitware.com
Mon Jul 11 09:19:33 EDT 2005
Roman Yakovenko wrote:
> Hi I don't know whether this is a bug in gcc or GCC_XML but here is description:
>
> code:
>
> struct X{};
> const X& ref_x();
> void do_smth( const X& x = ref_x() );
>
> after running GCC_XML here is function description:
>
> - <Function id="_3" name="do_smth" returns="_6" context="_1"
> mangled="_Z7do_smthRK1X" location="f0:3" file="f0" line="3"
> extern="1">
> <Argument type="_7" default="ref_x()()" />
> </Function>
>
> The problem is - default="ref_x()()".
GCC-XML just uses GCC's expression-to-string conversion to produce that.
It must be a bug in GCC.
-Brad
More information about the gccxml
mailing list