This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Possible bug in gcc (Please Help)...



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

<<snip enum_test.h>>

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]