Error 19970302

Alexandre Oliva
Mon Jun 26 05:25:00 GMT 2000

On Jun 26, 2000, Wayne Miller <> 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
Red Hat GCC Developer                  aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist    *Please* write to mailing lists, not to me

More information about the Gcc-bugs mailing list