Error 19970302

Alexandre Oliva aoliva@redhat.com
Mon Jun 26 05:25:00 GMT 2000


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



More information about the Gcc-bugs mailing list