This is the mail archive of the gcc-bugs@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]

Re: (gcc 2.95 NT4 SP6) function declaration with enum argument


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


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