This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/10086: static const int unresolved in ? : construct


> 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 at ticam dot utexas dot edu
                              www: http://www.ticam.utexas.edu/~bangerth/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]