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

static const enums and "storage class specified for typename" errors


I have the following code:

class A {
    ...
    protected:
        static const enum foo {...};
}

which gets a "storage class specified for typeanme" error.

Am I allowed to declare enums const and static under gcc?
(This, incidentally, conpiled under Microsoft's Visual C++ compile
without any errors.)

George Lee
george@links2go.com
Links2Go, Inc.


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