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++/29645] undefined references to static const int members



------- 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


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