[GCC-XML]Returns int when returning an enum.
Brad King
brad.king at kitware.com
Wed Aug 7 16:38:56 EDT 2002
Kevin,
> Why does the gccxml (or gcc i guess) state that any method returning any
> enum isactually returning an int? I would like to know exactly which
> enum is to be returned.
This example:
enum A { a };
A f();
produces:
<Function id="_2" name="f" returns="_3"
context="_1" location="f0:2" extern="1"/>
<Enumeration id="_3" name="A" context="_1" location="f0:1">
<EnumValue name="a" init="0"/>
</Enumeration>
I cannot duplicate your problem. Please post an example that causes it.
Thanks.
-Brad
More information about the gccxml
mailing list