From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14045 invoked by alias); 15 May 2002 17:44:41 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 13950 invoked from network); 15 May 2002 17:44:32 -0000 Received: from unknown (HELO lax-gate5.raytheon.com) (199.46.200.234) by sources.redhat.com with SMTP; 15 May 2002 17:44:32 -0000 Received: from ds02w01.directory.ray.com (ds02w01.directory.ray.com [147.25.154.117]) by lax-gate5.raytheon.com (8.11.0.Beta3/8.11.0.Beta3) with ESMTP id g4FHiTH09623; Wed, 15 May 2002 10:44:29 -0700 (PDT) Received: from ds02w01.directory.ray.com (root@localhost) by ds02w01.directory.ray.com (8.12.1/8.12.1) with ESMTP id g4FHiL1H015462; Wed, 15 May 2002 12:44:26 -0500 (CDT) Received: from ad2-mta02.and.us.ray.com (ad2-mta02.and.us.ray.com [138.127.59.160]) by ds02w01.directory.ray.com (8.12.1/8.12.1) with ESMTP id g4FHiKNf015437; Wed, 15 May 2002 12:44:20 -0500 (CDT) Subject: Possible bug in gcc (Please Help)... To: gcc@gcc.gnu.org, gcc-help@gcc.gnu.org Message-ID: From: "Thomas J Amato" Date: Wed, 15 May 2002 10:44:00 -0000 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-SW-Source: 2002-05/txt/msg00153.txt.bz2 Hi, I created a small test case which gets the following error (using 3.0.3 on Solaris 2.7): gcc -x c++ -c enum_test.h enum_test.h:2: use of enum `colors' without previous declaration <> enum colors; void func1(colors var1); Is this a bug in gcc? I can forward declare a class, struct, or union but not an enum. If this is a bug has it been fixed in 3.0.4 or 3.1? Any help would be great. Thanks, Tom