This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Forward declaration of enums
- To: "robin 'xer.xes' putters" <robin at games dot lostboys dot nl>
- Subject: Re: Forward declaration of enums
- From: Mumit Khan <khan at NanoTech dot Wisc dot EDU>
- Date: Thu, 27 Apr 2000 16:23:58 -0500 (CDT)
- cc: cygwin at sourceware dot cygnus dot com
On Thu, 27 Apr 2000, robin 'xer.xes' putters wrote:
> Okay, I don't know if this is a bug, but I can't forward declare any enums,
There is really no such thing as "forward declaration" for enumerated
types in C or C++ ISO standards (hence the respective language
definitions).
/* This is NOT OK. */
enum foo;
enum foo { foo1 = 0 };
/* This is OK however. */
enum foo { foo1 = 0 };
enum foo;
> it works in all other compilers I use.
Well, all those other compilers have implemented this as an extension
obviously.
In any case, this is not a Cygwin issue, and if you want to lobby to get
such an extension in gcc, you'll have to use GCC forums instead. See
http://gcc.gnu.org/
Regards,
Mumit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com