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]

[Bug c++/30745] Undefined static const



------- Comment #3 from pinskia at gcc dot gnu dot org  2007-02-10 21:12 -------
The definition have to be not inialized if it was already initialized in the
declaration

The declaration is the one which is inside the class, the definition which is
the one which defines the memory space is the one out side of the class.

If you just declare/define the variable outside of the class, that is a
definition.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30745


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