public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Possible bug in gcc (Please Help)...
@ 2002-05-15 10:44 Thomas J Amato
  2002-05-15 11:05 ` John Love-Jensen
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas J Amato @ 2002-05-15 10:44 UTC (permalink / raw)
  To: gcc, gcc-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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-15 18:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-15 10:44 Possible bug in gcc (Please Help) Thomas J Amato
2002-05-15 11:05 ` John Love-Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).