This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Error 19970302
On Jun 26, 2000, Wayne Miller <waynem@tiac.net> wrote:
> My C++ might be a bit deficient, but I'm pretty sure that should in fact be
> allowed under ANSI C++.
Nope. A const static data member can only be used as a constant in
constant expressions if it's initialized within the class body.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me