This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: (gcc 2.95 NT4 SP6) function declaration with enum argument
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Subject: Re: (gcc 2.95 NT4 SP6) function declaration with enum argument
- From: Thomas Maeder <maeder at glue dot ch>
- Date: Sun, 05 Mar 2000 11:40:27 +0100
- CC: egcs-bugs at egcs dot cygnus dot com
- References: <38C0EDC2.D3ED4AE8@glue.ch> <38C0EF46.B102A37@codesourcery.com>
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.
Thomas