This is the mail archive of the gcc-prs@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: c++/3976: g++ 3.0 has problems with static const int as templated argument


Synopsis: g++ 3.0 has problems with static const int as templated argument

State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Fri Aug 10 13:11:55 2001
State-Changed-Why:
    Not a bug.  Every static data member must be defined outside the class body if it is referenced in the program, even if it is a const data member initialized with a constant expression inside the class body.  In this case, the definition outside the class body must not contain an initializer.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3976&database=gcc


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