c++/10086: static const int unresolved in ? : construct
Wolfgang Bangerth
bangerth@ticam.utexas.edu
Sat Mar 15 17:15:00 GMT 2003
> I do not agree.
That doesn't make it right. The standard says that you need to have
definitions of static variables like
const int Base::A;
and it allows the compiler to make use of these variables without using
the provided constant initializers. Just because it uses them in one
context and not in another doesn't mean you should rely on that.
W.
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth/
More information about the Gcc-bugs
mailing list