[GCC-XML] Bug with empty structure

Thomas Heller theller at python.net
Thu Jun 23 15:52:14 EDT 2005


On this structure (I know it's silly, but it seems to appear in real
world header files)

typedef struct {
// OBSOLETE
} Y;

gccxml generates this:

<?xml version="1.0"?>
<GCC_XML cvs_revision="1.96">
  <Namespace id="_1" name="::" members="_3 " mangled="_Z2::"/>
  <Namespace id="_2" name="std" context="_1" members="" mangled="_Z3std"/>
  <Struct id="_3" name="Y" context="_1" mangled="1Y" location="f0:3"
  file="f0" line="3" size="8" align="8" members="_4 _5 " bases=""/>
                     ^^^^^^^^

size="8" is a bug, isn't it?

Thomas




More information about the gccxml mailing list