This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30745] Undefined static const
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Feb 2007 21:12:40 -0000
- Subject: [Bug c++/30745] Undefined static const
- References: <bug-30745-4888@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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