This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3976: g++ 3.0 has problems with static const int as templated argument
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, karen dot cooper at nssl dot noaa dot gov, lakshman at nssl dot noaa dot gov, nobody at gcc dot gnu dot org
- Subject: Re: c++/3976: g++ 3.0 has problems with static const int as templated argument
- From: aoliva at gcc dot gnu dot org
- Date: 10 Aug 2001 20:11:55 -0000
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