delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/04/27/16:23:50

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
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 <khan AT NanoTech DOT Wisc DOT EDU>
To: "robin 'xer.xes' putters" <robin AT games DOT lostboys DOT nl>
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Forward declaration of enums
In-Reply-To: <009601bfb03c$24e1fe20$3e5d6dc2@HONDA>
Message-ID: <Pine.HPP.3.96.1000427160626.19541O-100000@hp2.xraylith.wisc.edu>
MIME-Version: 1.0

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019