Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com X-Authentication-Warning: hp2.xraylith.wisc.edu: khan owned process doing -bs Date: Thu, 27 Apr 2000 16:23:58 -0500 (CDT) From: Mumit Khan To: "robin 'xer.xes' putters" cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: Forward declaration of enums In-Reply-To: <009601bfb03c$24e1fe20$3e5d6dc2@HONDA> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 AT sourceware DOT cygnus DOT com