(gcc 2.95 NT4 SP6) function declaration with enum argument

Thomas Maeder maeder@glue.ch
Sun Mar 5 02:54:00 GMT 2000

Nathan Sidwell schrieb:
> Thomas Maeder wrote:
> >
> > When I try to compile the following code using gcc 2.95 on NT4 SP6:
> >
> > #include <string>
> > enum TLanguage;
> > std::string GetLanguageString(TLanguage);
> There's no such thing as an incomplete enum. g++ accepts the above as

Do you mean that

enum TLanguage;

is invalid? I don't think so.

> an extension, try with -pedantic.

I don't see why an extension should be needed for my code to compile. It
seems just straight C++ to me.


More information about the Gcc-bugs mailing list