This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29645] undefined references to static const int members
- From: "christian dot heinlein at uni-ulm dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Oct 2006 11:38:31 -0000
- Subject: [Bug c++/29645] undefined references to static const int members
- References: <bug-29645-7526@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from christian dot heinlein at uni-ulm dot de 2006-10-30 11:38 -------
No! A "static const int" member which is only used as a compile time constant
does not need a definition, if I understand the C++ standard correctly.
(And in most cases, the code produced by GCC actually does not need a
definition!)
--
christian dot heinlein at uni-ulm dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29645