This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
array type has incomplete element type
- From: David Yu <dyu9999 at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 1 May 2005 12:26:22 -0700
- Subject: array type has incomplete element type
- Reply-to: David Yu <dyu9999 at gmail dot com>
Hi,
What's wrong with this ? It is ok in gcc 3 not not ok with gcc4:
#define SERVICE_TYPE(type, val, state) SERVICE_##type = val,
typedef enum service_e {
SERVICE_TYPE(NONE, 0, false)
SERVICE_TYPE(FTP, 1, true)
SERVICE_TYPE_MAX
} service_type_t;
Thanks
dave